diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-06-01 15:50:52 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-06-12 09:57:24 +0200 |
commit | 572b9047260322ed19cc9f674657b8be8d62c052 (patch) | |
tree | 0ed9392291c50980c7dbff14c9a05edc601076de /archaeological_context_records/admin.py | |
parent | 66a376e081e335cf94ecf6fd41e5fe13a5445c57 (diff) | |
download | Ishtar-572b9047260322ed19cc9f674657b8be8d62c052.tar.bz2 Ishtar-572b9047260322ed19cc9f674657b8be8d62c052.zip |
Adapt forms, wizards, views, urls for new management of documents (refs #4107)
Diffstat (limited to 'archaeological_context_records/admin.py')
-rw-r--r-- | archaeological_context_records/admin.py | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/archaeological_context_records/admin.py b/archaeological_context_records/admin.py index c06927f37..1f08bc505 100644 --- a/archaeological_context_records/admin.py +++ b/archaeological_context_records/admin.py @@ -65,20 +65,8 @@ class ContextRecordAdmin(HistorizedObjectAdmin): 'cached_label', 'datings' ] -admin_site.register(models.ContextRecord, ContextRecordAdmin) - - -class ContextRecordSourceAdmin(admin.ModelAdmin): - list_display = ('context_record', 'title', 'source_type',) - list_filter = ('source_type',) - search_fields = ('title', ) - model = models.ContextRecordSource - form = make_ajax_form(model, { - "context_record": 'context_record', - 'authors': 'author' - }) -admin_site.register(models.ContextRecordSource, ContextRecordSourceAdmin) +admin_site.register(models.ContextRecord, ContextRecordAdmin) class RecordRelationsAdmin(admin.ModelAdmin): |