fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More Py3 compatibility fixes.
[wolnelektury.git]
/
src
/
chunks
/
models.py
diff --git
a/src/chunks/models.py
b/src/chunks/models.py
index
37b9f60
..
a9f6e7f
100644
(file)
--- a/
src/chunks/models.py
+++ b/
src/chunks/models.py
@@
-23,7
+23,7
@@
class Chunk(models.Model):
verbose_name = _('chunk')
verbose_name_plural = _('chunks')
verbose_name = _('chunk')
verbose_name_plural = _('chunks')
- def __
unicode
__(self):
+ def __
str
__(self):
return self.key
def save(self, *args, **kwargs):
return self.key
def save(self, *args, **kwargs):
@@
-45,5
+45,5
@@
class Attachment(models.Model):
ordering = ('key',)
verbose_name, verbose_name_plural = _('attachment'), _('attachments')
ordering = ('key',)
verbose_name, verbose_name_plural = _('attachment'), _('attachments')
- def __
unicode
__(self):
+ def __
str
__(self):
return self.key
return self.key