mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-05-04 00:34:42 +00:00
Fixed #2 - Updated SplitField for 1.2-style prep_value method.
This commit is contained in:
parent
ac36cbf56c
commit
552f7c2009
1 changed files with 1 additions and 1 deletions
|
|
@ -195,7 +195,7 @@ class SplitField(models.TextField):
|
|||
value = self._get_val_from_obj(obj)
|
||||
return value.content
|
||||
|
||||
def get_db_prep_value(self, value):
|
||||
def get_prep_value(self, value):
|
||||
try:
|
||||
return value.content
|
||||
except AttributeError:
|
||||
|
|
|
|||
Loading…
Reference in a new issue