Skip to content

Conversation

@DanSheps
Copy link
Member

Fixes: #5315

Alter the DynamicModelChoiceField to remove any value that is a string of 'null' if the 'null_option' and then call the parent clean() method.

Copy link
Member

@jeremystretch jeremystretch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than my one note I think this is fine. It feels a bit hacky, but it's certainly preferable to overhauling the choice widgets at the moment.

@DanSheps DanSheps merged commit 3d3748d into develop Feb 12, 2021
@jeremystretch jeremystretch deleted the 5315-site_unassignment_vlan branch March 5, 2021 14:10
glennmatthews added a commit to nautobot/nautobot that referenced this pull request Jun 16, 2021
glennmatthews added a commit to nautobot/nautobot that referenced this pull request Jun 16, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot unassign a site from a vlan

3 participants