fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix for carousel management.
[wolnelektury.git]
/
src
/
catalogue
/
models
/
source.py
diff --git
a/src/catalogue/models/source.py
b/src/catalogue/models/source.py
index
08cac0c
..
ee024e0
100644
(file)
--- a/
src/catalogue/models/source.py
+++ b/
src/catalogue/models/source.py
@@
-2,7
+2,7
@@
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
from django.db import models
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
from django.db import models
-from django.utils.translation import
u
gettext_lazy as _
+from django.utils.translation import gettext_lazy as _
class Source(models.Model):
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:
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
old_netloc = self.netloc
else:
old_name = old_self.name