From bef22330be857782eba033f3b10dd96596f688a0 Mon Sep 17 00:00:00 2001 From: shagi Date: Mon, 21 Feb 2022 11:26:00 +0100 Subject: [PATCH] Add admin.py file --- gas/admin.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 gas/admin.py diff --git a/gas/admin.py b/gas/admin.py new file mode 100644 index 0000000..cf30150 --- /dev/null +++ b/gas/admin.py @@ -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',)