Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ Besides ``LocalizedField``, there's also:

Allows storing integers in multiple languages. This works exactly like ``LocalizedField`` except that
all values must be integers. Do note that values are stored as strings in your database because
the backing field type is ``hstore``, which only allows storing integers. The ``LocalizedIntegerField``
the backing field type is ``hstore``, which only allows storing strings. The ``LocalizedIntegerField``
takes care of ensuring that all values are integers and converts the stored strings back to integers
when retrieving them from the database. Do not expect to be able to do queries such as:

Expand Down
2 changes: 1 addition & 1 deletion localized_fields/value.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,4 +233,4 @@ def __str__(self) -> str:
"""Returns string representation of value"""

value = self.translate()
return str(value) if value is not None else None
return str(value) if value is not None else ''