Attributes in django admin now also editable inline, causing them to call the AttributeHandler or NicksHandler of the appropriate object.
This commit is contained in:
parent
6a851750f3
commit
b80f7c3637
5 changed files with 221 additions and 64 deletions
|
|
@ -14,6 +14,7 @@ class ChannelAttributeInline(AttributeInline):
|
|||
|
||||
"""
|
||||
model = ChannelDB.db_attributes.through
|
||||
related_field = "channeldb"
|
||||
|
||||
|
||||
class ChannelTagInline(TagInline):
|
||||
|
|
@ -22,6 +23,7 @@ class ChannelTagInline(TagInline):
|
|||
|
||||
"""
|
||||
model = ChannelDB.db_tags.through
|
||||
related_field = "channeldb"
|
||||
|
||||
|
||||
class MsgAdmin(admin.ModelAdmin):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue