Commit 6a276da5 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

cyclades: Fix bug in custom field

Rename get_db_prep_value to get_prep_value. In django 1.4 the second one
is just a wrapper for the first one.
parent 3d5b54b4
......@@ -47,7 +47,7 @@ class SeparatedValuesField(models.TextField):
return value
return value.split(self.delimiter)
def get_db_prep_value(self, value):
def get_prep_value(self, value):
if not value:
assert(isinstance(value, list) or isinstance(value, tuple))
......@@ -55,7 +55,7 @@ class SeparatedValuesField(models.TextField):
def value_to_string(self, obj):
value = self._get_val_from_obj(obj)
return self.get_db_prep_value(value)
return self.get_prep_value(value)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment