Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Move choices outside of model class
Mira Szewczykda40ff6b02d1
diff --git a/saleor/core/models.py b/saleor/core/models.pyindex 3a1ecedca7..995b64b8fc 100644--- a/saleor/core/models.py+++ b/saleor/core/models.py@@ -3,11 +3,13 @@ from django.utils.translation import pgettext_lazyfrom django.utils.encoding import python_2_unicode_compatible+INTEGER = 'i'+STRING = 's'+BOOLEAN = 'b'++@python_2_unicode_compatibleclass Setting(models.Model):- INTEGER = 'i'- STRING = 's'- BOOLEAN = 'b'VALUE_TYPE_CHOICES = ((INTEGER, pgettext_lazy('Settings', 'Integer')),(STRING, pgettext_lazy('Settings', 'String')),