X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/e977f7187b10b1bc0a30794cd585c6b840568996..eadb2822a6c87ac0f1ad3e529747c8e2cff14ae7:/src/documents/admin.py diff --git a/src/documents/admin.py b/src/documents/admin.py index b793303d..21390a75 100644 --- a/src/documents/admin.py +++ b/src/documents/admin.py @@ -11,10 +11,14 @@ class BookAdmin(admin.ModelAdmin): search_fields = ['title'] +class TagAdmin(admin.ModelAdmin): + list_display = ['name', 'ordering'] + list_editable = ['ordering'] + admin.site.register(models.Project) admin.site.register(models.Book, BookAdmin) admin.site.register(models.Chunk) -admin.site.register(models.Chunk.tag_model) +admin.site.register(models.Chunk.tag_model, TagAdmin) admin.site.register(models.Image) -admin.site.register(models.Image.tag_model) +admin.site.register(models.Image.tag_model, TagAdmin)