mirror of
https://github.com/SectorLabs/django-localized-fields.git
synced 2025-10-30 02:28:57 +03:00
self.translate()
This commit is contained in:
@@ -232,4 +232,5 @@ class LocalizedIntegerValue(LocalizedValue):
|
|||||||
def __str__(self) -> str:
|
def __str__(self) -> str:
|
||||||
"""Returns string representation of value"""
|
"""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
|
||||||
|
|||||||
Reference in New Issue
Block a user