Upgrades
[wolnelektury.git] / src / catalogue / models / source.py
index 08cac0c..ee024e0 100644 (file)
@@ -2,7 +2,7 @@
 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
 #
 from django.db import models
-from django.utils.translation import ugettext_lazy as _
+from django.utils.translation import gettext_lazy as _
 
 
 class Source(models.Model):
@@ -25,7 +25,7 @@ class Source(models.Model):
             str(self.pk)
             old_self = type(self).objects.get(pk=self)
         except type(self).DoesNotExist:
-            old_name = u''
+            old_name = ''
             old_netloc = self.netloc
         else:
             old_name = old_self.name