mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
[1.4.x] Fixed #18528 -- Fixed custom field value_to_string example
Thanks anuraguniyal for the report.
This commit is contained in:
parent
9014b138e6
commit
d92c38a281
1 changed files with 1 additions and 1 deletions
|
@ -684,7 +684,7 @@ data storage anyway, we can reuse some existing conversion code::
|
|||
|
||||
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)
|
||||
|
||||
Some general advice
|
||||
--------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue