summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2c6c52b)
Minor fix: non-standard (mp3, ogg, odt, daisy) media for book are not required anymore in admin.
epub_file = models.FileField(_('EPUB file'), upload_to=book_upload_path('epub'), blank=True)
txt_file = models.FileField(_('TXT file'), upload_to=book_upload_path('txt'), blank=True)
# other files
epub_file = models.FileField(_('EPUB file'), upload_to=book_upload_path('epub'), blank=True)
txt_file = models.FileField(_('TXT file'), upload_to=book_upload_path('txt'), blank=True)
# other files
- medias = models.ManyToManyField(BookMedia)
+ medias = models.ManyToManyField(BookMedia, blank=True)
parent = models.ForeignKey('self', blank=True, null=True, related_name='children')
objects = models.Manager()
parent = models.ForeignKey('self', blank=True, null=True, related_name='children')
objects = models.Manager()
<a href="{{ tag.get_absolute_url }}">{{ tag }}</a>{% if not forloop.last %}, {% endif %}
{% endfor %}
</li>
<a href="{{ tag.get_absolute_url }}">{{ tag }}</a>{% if not forloop.last %}, {% endif %}
{% endfor %}
</li>
+ <li>
+ <a href="{{ book.xml_file.url }}">{% trans "View XML source" %}</a>
+ </li>
</ul>
<h2>{% trans "Other resources" %}</h2>
<ul>
</ul>
<h2>{% trans "Other resources" %}</h2>
<ul>