dj22: use_for_related_fields is deprecated[2] (#41238)
We must declarer all_objects as base manager for the Attribute model, without it we cannot load then save disabled attributes.
This commit is contained in:
parent
b439593203
commit
5c2c4fc7de
|
@ -317,6 +317,7 @@ class Attribute(models.Model):
|
|||
verbose_name = _('attribute definition')
|
||||
verbose_name_plural = _('attribute definitions')
|
||||
ordering = ('order', 'id')
|
||||
base_manager_name = 'all_objects'
|
||||
|
||||
|
||||
class AttributeValue(models.Model):
|
||||
|
|
Loading…
Reference in New Issue