Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Move choices outside of model class

Mira Szewczykda40ff6b02d1
diff --git a/saleor/core/models.py b/saleor/core/models.py
index 3a1ecedca7..995b64b8fc 100644
--- a/saleor/core/models.py
+++ b/saleor/core/models.py
@@ -3,11 +3,13 @@ from django.utils.translation import pgettext_lazy
from django.utils.encoding import python_2_unicode_compatible
+INTEGER = 'i'
+STRING = 's'
+BOOLEAN = 'b'
+
+
@python_2_unicode_compatible
class Setting(models.Model):
- INTEGER = 'i'
- STRING = 's'
- BOOLEAN = 'b'
VALUE_TYPE_CHOICES = (
(INTEGER, pgettext_lazy('Settings', 'Integer')),
(STRING, pgettext_lazy('Settings', 'String')),