add mobied to ebf admin
parent
6031aa8733
commit
174b46abd1
|
@ -225,8 +225,8 @@ class EbookFileAdmin(ModelAdmin):
|
|||
list_display = ('created', 'format', 'ebook_link', 'asking')
|
||||
date_hierarchy = 'created'
|
||||
ordering = ('edition__work',)
|
||||
fields = ('file', 'format', 'edition', 'edition_link', 'ebook', 'ebook_link', 'source')
|
||||
readonly_fields = ('file', 'edition_link', 'ebook_link',)
|
||||
fields = ('file', 'format', 'edition', 'edition_link', 'ebook', 'ebook_link', 'source', 'mobied')
|
||||
readonly_fields = ('file', 'edition_link', 'ebook_link', 'source')
|
||||
def edition_link(self, obj):
|
||||
if obj.edition:
|
||||
link = reverse("admin:core_edition_change", args=[obj.edition_id])
|
||||
|
|
Loading…
Reference in New Issue