1. Matt Austin
  2. django-model-utils

Commits

Carl Meyer  committed cde35c3

Fixed #2 - Updated SplitField for 1.2-style prep_value method.

  • Participants
  • Parent commits dccfb7b
  • Branches default

Comments (0)

Files changed (1)

File model_utils/fields.py

View file
  • Ignore whitespace
         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: