aboutsummaryrefslogtreecommitdiffstats
path: root/servo/models
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2021-05-24 12:53:13 +0300
committerFilipp Lepalaan <filipp@mac.com>2021-05-24 12:53:13 +0300
commit80d05a3ba16c09e356a699ab1b1db837f785d313 (patch)
tree40e74baae7ad04b46b342f978eb3c4456d98df3c /servo/models
parentabfb352e0c735e1b86b78d3160693eb713adbdfc (diff)
downloadServo-80d05a3ba16c09e356a699ab1b1db837f785d313.tar.gz
Servo-80d05a3ba16c09e356a699ab1b1db837f785d313.tar.bz2
Servo-80d05a3ba16c09e356a699ab1b1db837f785d313.zip
Added currency
Diffstat (limited to 'servo/models')
-rw-r--r--servo/models/product.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/servo/models/product.py b/servo/models/product.py
index 83bef0e..379df9d 100644
--- a/servo/models/product.py
+++ b/servo/models/product.py
@@ -2,14 +2,14 @@
import re
from os.path import basename
+from decimal import Decimal, ROUND_CEILING
from django.db import models
from django.db import connection
+from django.urls import reverse
from django.conf import settings
from django.core.files import File
from django.core.cache import cache
-from decimal import Decimal, ROUND_CEILING
-from django.urls import reverse
from django.contrib.contenttypes.fields import GenericRelation
@@ -108,6 +108,12 @@ class AbstractBaseProduct(models.Model):
verbose_name=_("VAT %")
)
+ currency = models.CharField(
+ max_length=3,
+ default='',
+ editable=False,
+ )
+
fixed_price = models.BooleanField(
default=False,
help_text=_("Don't update price when recalculating prices or importing parts")