Exclude limit_choices_to
attribute from field deconstruction for migration planning
#10136
Labels
netbox
status: backlog
Awaiting selection for work
type: housekeeping
Changes to the application which do not directly impact the end user
Proposed Changes
Extend our custom field deconstruction method to exclude a field's
limit_choices_to
attribute in addition tochoices
,help_text
, andverbose_name
(which are already excluded).Justification
Changes to the
limit_choices_to
attribute on a field do not effect a database schema change. (In fact, we have many instances where the use ofFeatureQuery()
results in the dynamic calculation of acceptable values at runtime.) Excluding this attribute from consideration avoids creating "no-op" migrations which clutter the application.The text was updated successfully, but these errors were encountered: