konova/ema/admin.py
mpeltriaux 04dc7fcd30 # Admin backends
* disables certain admin backends
* adds proper ordering to server message admin overview
2024-04-03 08:29:19 +02:00

21 lines
416 B
Python

from django.contrib import admin
from compensation.admin import AbstractCompensationAdmin
from ema.models import Ema
class EmaAdmin(AbstractCompensationAdmin):
filter_horizontal = [
"users",
"teams",
]
def get_fields(self, request, obj=None):
return super().get_fields(request, obj) + [
"users",
"teams",
]
admin.site.register(Ema, EmaAdmin)