aboutsummaryrefslogtreecommitdiffstats
path: root/servo/models/product.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2021-05-12 14:51:24 +0300
committerFilipp Lepalaan <filipp@mac.com>2021-05-12 14:51:24 +0300
commit0544a119af72235ef7ff5558fc519205dcf2ec49 (patch)
tree45907310a28d32fce224ab4f6a25c7b6c9423f1d /servo/models/product.py
parenta65840f3c944c099b9d1b36bbbbc78e9395a58e7 (diff)
downloadServo-0544a119af72235ef7ff5558fc519205dcf2ec49.tar.gz
Servo-0544a119af72235ef7ff5558fc519205dcf2ec49.tar.bz2
Servo-0544a119af72235ef7ff5558fc519205dcf2ec49.zip
Django 3 fixes
Diffstat (limited to 'servo/models/product.py')
-rw-r--r--servo/models/product.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/servo/models/product.py b/servo/models/product.py
index aa20cc9..189ca8a 100644
--- a/servo/models/product.py
+++ b/servo/models/product.py
@@ -9,7 +9,7 @@ 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.core.urlresolvers import reverse
+from django.urls import reverse
from django.contrib.sites.models import Site
from django.contrib.contenttypes.fields import GenericRelation
@@ -533,7 +533,7 @@ class Product(AbstractBaseProduct):
filename = basename(result)
self.photo.save(filename, File(open(result)))
except Exception as e:
- print e
+ print(e)
def __unicode__(self):
return u'%s %s' % (self.code, self.title)