Skip to content

Commit

Permalink
script list_display fields
Browse files Browse the repository at this point in the history
  • Loading branch information
gotlium committed Jun 25, 2014
1 parent 453306e commit 7d90dd9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions mmc/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def has_delete_permission(self, request, obj=None):
return False


class MMCBaseAdmin(admin.ModelAdmin):
class MMCHostAdmin(admin.ModelAdmin):
list_display = ('name', 'ignore', 'created', 'id',)
list_filter = ('created', 'ignore',)
list_display_links = ('name',)
Expand All @@ -54,6 +54,10 @@ def has_delete_permission(self, request, obj=None):
return False


class MMCScriptAdmin(MMCHostAdmin):
list_display = ('name', 'ignore', 'one_copy', 'created', 'id',)


class MMCEmailAdmin(admin.ModelAdmin):
list_display = ('email', 'is_active', 'created', 'id',)
list_filter = ('created', 'is_active',)
Expand All @@ -65,6 +69,6 @@ class MMCEmailAdmin(admin.ModelAdmin):


admin.site.register(MMCLog, MMCLogAdmin)
admin.site.register(MMCHost, MMCBaseAdmin)
admin.site.register(MMCScript, MMCBaseAdmin)
admin.site.register(MMCHost, MMCHostAdmin)
admin.site.register(MMCScript, MMCScriptAdmin)
admin.site.register(MMCEmail, MMCEmailAdmin)

0 comments on commit 7d90dd9

Please sign in to comment.