mirror of
https://github.com/SectorLabs/django-localized-fields.git
synced 2025-12-14 07:42:24 +03:00
Add LocalizedIntegerFieldWidget
This commit is contained in:
@@ -228,3 +228,8 @@ class LocalizedIntegerValue(LocalizedValue):
|
||||
return self.default_value
|
||||
|
||||
return int(value)
|
||||
|
||||
def __str__(self) -> str:
|
||||
"""Returns string representation of value"""
|
||||
|
||||
return str(self.get(translation.get_language()))
|
||||
|
||||
Reference in New Issue
Block a user