Add admin.py file

This commit is contained in:
Ales (Shagi) Zabala Alava 2022-02-21 11:26:00 +01:00
parent 6e5ee54b36
commit bef22330be
1 changed files with 9 additions and 0 deletions

9
gas/admin.py Normal file
View File

@ -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',)