Respect null option of TranslationField in migrations.

This commit is contained in:
Dirk Eschler 2014-07-14 11:07:17 +02:00
parent c4d6c82f95
commit 3281547a9e

View file

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