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:
parent
f5c0b8eaaa
commit
6a851750f3
4 changed files with 78 additions and 2 deletions
|
|
@ -26,6 +26,7 @@ class ObjectTagInline(TagInline):
|
|||
|
||||
"""
|
||||
model = ObjectDB.db_tags.through
|
||||
related_field = "objectdb"
|
||||
|
||||
|
||||
class ObjectCreateForm(forms.ModelForm):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue