mirror of
https://github.com/Hopiu/django-modeltranslation.git
synced 2026-05-14 08:03:10 +00:00
Respect null option of TranslationField in migrations.
This commit is contained in:
parent
c4d6c82f95
commit
3281547a9e
1 changed files with 2 additions and 0 deletions
|
|
@ -252,6 +252,8 @@ class TranslationField(object):
|
|||
|
||||
def deconstruct(self):
|
||||
name, path, args, kwargs = self.translated_field.deconstruct()
|
||||
if self.null is True:
|
||||
kwargs.update({'null': True})
|
||||
return six.text_type(self.name), path, args, kwargs
|
||||
|
||||
def south_field_triple(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue