Hardcoding no_excerpt_field field in deconstruct() method of SplitField class
This commit is contained in:
Sergey Zherevchuk 2015-06-18 11:11:28 +03:00
parent d797996d13
commit 608028aba8

View file

@ -231,7 +231,7 @@ class SplitField(models.TextField):
def deconstruct(self):
name, path, args, kwargs = super(SplitField, self).deconstruct()
kwargs['no_excerpt_field'] = self.add_excerpt_field
kwargs['no_excerpt_field'] = True
return name, path, args, kwargs
# allow South to handle these fields smoothly