mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-05-15 05:13:10 +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:
|
except AttributeError:
|
||||||
return value
|
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
|
# allow South to handle these fields smoothly
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue