Skip to content

Commit

Permalink
Admin updates
Browse files Browse the repository at this point in the history
  • Loading branch information
XanderVertegaal committed Apr 25, 2024
1 parent 671aea0 commit 7642e49
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
7 changes: 1 addition & 6 deletions backend/core/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@
"Source information",
{
"description": "Information about the source from which this description is taken.",
"fields": [
"source",
"source_location",
"source_mention",
],
"fields": ["source", "source_mention", "book", "chapter", "page"],
},
)

Expand All @@ -26,7 +22,6 @@

description_field_fields = [
"source_mention",
"source_location",
"source_terminology",
] + field_fields

Expand Down
10 changes: 8 additions & 2 deletions backend/source/admin.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
from django.contrib import admin
from django.contrib.contenttypes.admin import GenericStackedInline
from . import models


@admin.register(models.Source)
class SourceAdmin(admin.ModelAdmin):
fields = ["name", "bibliographical_info"]
fields = [
"name",
"medieval_title",
"medieval_author",
"edition_title",
"edition_author",
]

0 comments on commit 7642e49

Please sign in to comment.