Add LocalizedIntegerFieldWidget

This commit is contained in:
Cristi Ingineru
2018-08-16 14:27:38 +03:00
parent 88e2d29596
commit 4f83cbf4ed
5 changed files with 30 additions and 2 deletions

View File

@@ -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()))