From 0544a119af72235ef7ff5558fc519205dcf2ec49 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Wed, 12 May 2021 14:51:24 +0300 Subject: Django 3 fixes --- servo/models/product.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'servo/models/product.py') 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) -- cgit v1.2.3