aboutsummaryrefslogtreecommitdiffstats
path: root/servo/models/product.py
diff options
context:
space:
mode:
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)