File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ Besides ``LocalizedField``, there's also:
279
279
280
280
Allows storing integers in multiple languages. This works exactly like ``LocalizedField `` except that
281
281
all values must be integers. Do note that values are stored as strings in your database because
282
- the backing field type is ``hstore ``, which only allows storing integers . The ``LocalizedIntegerField ``
282
+ the backing field type is ``hstore ``, which only allows storing strings . The ``LocalizedIntegerField ``
283
283
takes care of ensuring that all values are integers and converts the stored strings back to integers
284
284
when retrieving them from the database. Do not expect to be able to do queries such as:
285
285
Original file line number Diff line number Diff line change @@ -233,4 +233,4 @@ def __str__(self) -> str:
233
233
"""Returns string representation of value"""
234
234
235
235
value = self .translate ()
236
- return str (value ) if value is not None else None
236
+ return str (value ) if value is not None else ''
You can’t perform that action at this time.
0 commit comments