"priority",
"wikidata_link",
]
- search_fields = ["title", "wikidata", "authors__first_name", "authors__last_name", "translators__first_name", "translators__last_name"]
+ search_fields = [
+ "title", "wikidata",
+ "authors__first_name", "authors__last_name",
+ "translators__first_name", "translators__last_name",
+ "scans_source", "text_source", "notes", "estimate_source",
+ ]
autocomplete_fields = ["authors", "translators", "based_on", "collections", "epochs", "genres", "kinds"]
prepopulated_fields = {"slug": ("title",)}
list_filter = [
def authors_str(self):
return ", ".join(str(author) for author in self.authors.all())
+ authors_str.admin_order_field = 'authors__last_name'
def translators_str(self):
return ", ".join(str(author) for author in self.translators.all())
+ translators_str.admin_order_field = 'translators__last_name'
def get_estimated_costs(self):
return {