From 8a08c9b326354dcd30aa58e3406902599030b4d2 Mon Sep 17 00:00:00 2001 From: evgeniy-st Date: Thu, 22 Aug 2019 14:41:45 +0300 Subject: [PATCH] Fix __str__ for Country model --- apps/location/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/location/models.py b/apps/location/models.py index ebf66e04..7e6659a6 100644 --- a/apps/location/models.py +++ b/apps/location/models.py @@ -26,7 +26,7 @@ class Country(ProjectBaseMixin): verbose_name = _('Country') def __str__(self): - return self.code or self.id + return self.code or str(self.id) class Region(models.Model):