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:
Benjamin Dauvergne 2020-04-28 00:17:46 +02:00
parent b439593203
commit 5c2c4fc7de
1 changed files with 1 additions and 0 deletions

View File

@ -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):