small fix

This commit is contained in:
Anatoly 2019-10-23 17:40:42 +03:00
parent b78c4f82fe
commit 1e3c80ad0c
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ class Image(ProjectBaseMixin, SORLImageMixin, PlatformMixin):
def __str__(self):
"""String representation"""
return f'{self.title}'
return f'{self.id}'
def delete_image(self, completely: bool = True):
"""

View File

@ -106,7 +106,7 @@ from utils.querysets import ContentTypeQuerySetMixin
#
class Currency(models.Model, TranslatedFieldsMixin):
class Currency(TranslatedFieldsMixin, models.Model):
"""Currency model."""
name = TJSONField(
_('name'), null=True, blank=True,