Custom form/formset for adding/removing tags using the handler. Each TagAdmin used by the different typeclasses are now also required to specify a related_field, which seems redundant but is very hard to get around otherwise. Still to do - make sure that all the adds are working properly, and extend this to attributes as well, and make Tag searches still sort of useful in the admin so people can at least check names and so on

This commit is contained in:
Tehom 2016-11-07 09:00:26 -05:00 committed by Griatch
parent f5c0b8eaaa
commit 6a851750f3
4 changed files with 78 additions and 2 deletions

View file

@ -26,6 +26,7 @@ class ObjectTagInline(TagInline):
"""
model = ObjectDB.db_tags.through
related_field = "objectdb"
class ObjectCreateForm(forms.ModelForm):