philippbosch/django-geoposition — pull request #4 by chrisv2 (2012-04-30 15:27:38+00:00)
Title: Error on serializing models with Django 1.4

Problem: Models using GeopositionField cannot be serialized in Django 1.4:

```
./manage.py dumpdata myapp --traceback
Error: Unable to serialize database: get_db_prep_value() takes at least 3 arguments (2 given)
[...]
File "[...]/lib/python2.7/site-packages/django/core/serializers/python.py", line 45, in handle_field
self._current[field.name] = field.value_to_string(obj)
File "[...]/src/django-geoposition/geoposition/fields.py", line 43, in value_to_string
return self.get_db_prep_value(value)
TypeError: get_db_prep_value() takes at least 3 arguments (2 given)
```

Solution: remove call to get_db_prep_value(), it does nothing anyway