You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
233 B

  1. from django.contrib import admin
  2. from .models import Role
  3. class RoleAdmin(admin.ModelAdmin):
  4. list_display = ('name', 'description')
  5. ordering = ('name',)
  6. search_fields = ('name',)
  7. admin.site.register(Role, RoleAdmin)