fix I18nField
This commit is contained in:
parent
b8002a4aba
commit
b815e46a7b
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ class I18nField(models.JSONField):
|
||||||
|
|
||||||
def deconstruct(self):
|
def deconstruct(self):
|
||||||
name, path, args, kwargs = super().deconstruct()
|
name, path, args, kwargs = super().deconstruct()
|
||||||
if self.default == {}:
|
if self.default == {} or self.default == dict:
|
||||||
kwargs.pop('default')
|
kwargs.pop('default')
|
||||||
if self.plural_name is not None:
|
if self.plural_name is not None:
|
||||||
kwargs['plural_name'] = self.plural_name
|
kwargs['plural_name'] = self.plural_name
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue