Skip to content
This repository has been archived by the owner on Nov 26, 2018. It is now read-only.

Commit

Permalink
Admin filters and editable list.
Browse files Browse the repository at this point in the history
  • Loading branch information
vbabiy committed Nov 2, 2015
1 parent 8db1fc0 commit a78d769
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions botbot/apps/bots/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ def clean_private_slug(self):
class ChannelAdmin(admin.ModelAdmin):
form = ChannelForm
list_display = ('name', 'chatbot', 'status', 'is_featured', 'created', 'updated')
list_filter = ('status', 'is_featured', 'chatbot')
list_filter = ('status', 'is_featured', 'is_public', 'chatbot')
prepopulated_fields = {
'slug': ('name',)
}
list_editable = ('status',)
list_editable = ('chatbot','status',)
readonly_fields = ('fingerprint', 'created', 'updated')
search_fields = ('name', 'chatbot__server')
inlines = [ActivePluginInline]
Expand Down

0 comments on commit a78d769

Please sign in to comment.