add mobied to ebf admin

pull/94/head
eric 2019-03-25 12:45:53 -04:00
parent 6031aa8733
commit 174b46abd1
1 changed files with 2 additions and 2 deletions

View File

@ -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])