mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-17 04:10:24 +00:00
Merge pull request #157 from ad-m/patch-1
Fix GH-156: Django 1.7 migrations compatibility for SplitField.
This commit is contained in:
commit
fac4e077fc
1 changed files with 4 additions and 0 deletions
|
|
@ -229,6 +229,10 @@ class SplitField(models.TextField):
|
|||
except AttributeError:
|
||||
return value
|
||||
|
||||
def deconstruct(self):
|
||||
name, path, args, kwargs = super(SplitField, self).deconstruct()
|
||||
kwargs['no_excerpt_field'] = self.add_excerpt_field
|
||||
return name, path, args, kwargs
|
||||
|
||||
# allow South to handle these fields smoothly
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue