fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix
[redakcja.git]
/
src
/
catalogue
/
admin.py
diff --git
a/src/catalogue/admin.py
b/src/catalogue/admin.py
index
af08369
..
7eafe7b
100644
(file)
--- a/
src/catalogue/admin.py
+++ b/
src/catalogue/admin.py
@@
-15,6
+15,7
@@
from fnpdjango.actions import export_as_csv_action
from modeltranslation.admin import TabbedTranslationAdmin
from . import models
import documents.models
from modeltranslation.admin import TabbedTranslationAdmin
from . import models
import documents.models
+import sources.models
from .wikidata import WikidataAdminMixin
from .wikidata import WikidataAdminMixin
@@
-301,7
+302,13
@@
class FirstPublicationYearFilter(admin.ListFilter):
]
]
+class SourcesInline(admin.TabularInline):
+ model = sources.models.BookSource
+ extra = 1
+
+
class BookAdmin(WikidataAdminMixin, NumericFilterModelAdmin):
class BookAdmin(WikidataAdminMixin, NumericFilterModelAdmin):
+ inlines = [SourcesInline]
list_display = [
"smart_title",
"authors_str",
list_display = [
"smart_title",
"authors_str",
@@
-413,6
+420,7
@@
class BookAdmin(WikidataAdminMixin, NumericFilterModelAdmin):
"based_on",
"original_year",
"pd_year",
"based_on",
"original_year",
"pd_year",
+ "plwiki",
]
},
),
]
},
),