mirror of
https://github.com/SectorLabs/django-localized-fields.git
synced 2025-06-27 05:43:19 +03:00
self.translate()
This commit is contained in:
parent
4f83cbf4ed
commit
4922a1b93f
@ -232,4 +232,5 @@ class LocalizedIntegerValue(LocalizedValue):
|
||||
def __str__(self) -> str:
|
||||
"""Returns string representation of value"""
|
||||
|
||||
return str(self.get(translation.get_language()))
|
||||
value = self.translate()
|
||||
return str(value) if value is not None else None
|
||||
|
Loading…
x
Reference in New Issue
Block a user