Add admin.py file
This commit is contained in:
parent
6e5ee54b36
commit
bef22330be
|
@ -0,0 +1,9 @@
|
|||
from django.contrib import admin
|
||||
|
||||
from . import models
|
||||
|
||||
|
||||
@admin.register(models.UserRole)
|
||||
class UserRoleAdmin(admin.ModelAdmin):
|
||||
list_display = ('user', 'role')
|
||||
list_filter = ('role',)
|
Loading…
Reference in New Issue