fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f6925ca
)
Added foreign key to parent book on Book model.
author
Marek Stępniowski
<marek@stepniowski.com>
Sat, 6 Sep 2008 16:51:02 +0000
(18:51 +0200)
committer
Marek Stępniowski
<marek@stepniowski.com>
Sat, 6 Sep 2008 16:51:02 +0000
(18:51 +0200)
catalogue/models.py
patch
|
blob
|
history
diff --git
a/catalogue/models.py
b/catalogue/models.py
index
057236d
..
e80bd25
100644
(file)
--- a/
catalogue/models.py
+++ b/
catalogue/models.py
@@
-81,6
+81,8
@@
class Book(models.Model):
odt_file = models.FileField(_('ODT file'), upload_to='books/odt', blank=True)
html_file = models.FileField(_('HTML file'), upload_to='books/html', blank=True)
odt_file = models.FileField(_('ODT file'), upload_to='books/odt', blank=True)
html_file = models.FileField(_('HTML file'), upload_to='books/html', blank=True)
+ parent = models.ForeignKey('self', blank=True, null=True)
+
objects = managers.ModelTaggedItemManager(Tag)
tags = managers.TagDescriptor(Tag)
objects = managers.ModelTaggedItemManager(Tag)
tags = managers.TagDescriptor(Tag)