Commits

Michael Hall committed bd75ca7

Force field display order in RoleAdmin

  • Participants
  • Parent commits c5e3ee3

Comments (0)

Files changed (1)

 from django.contrib import admin
 
 class RoleAdmin(admin.ModelAdmin):
+    fields = ('model', 'role', 'permissions')
     search_fields = ('model','role')
+    readonly_fields = ('model','role')
     ordering = ('model','role')
     filter_horizontal = ('permissions',)
+    list_display = ('role', 'model')
+    list_filter = ('model',)
 
 admin.site.register(Role, RoleAdmin)