2021-08-19 13:02:31 +02:00
|
|
|
from django.contrib import admin
|
|
|
|
|
2022-02-01 18:41:02 +01:00
|
|
|
from compensation.admin import AbstractCompensationAdmin
|
2021-08-19 13:02:31 +02:00
|
|
|
from ema.models import Ema
|
|
|
|
|
|
|
|
|
2022-02-01 18:41:02 +01:00
|
|
|
class EmaAdmin(AbstractCompensationAdmin):
|
|
|
|
filter_horizontal = [
|
2022-11-16 13:27:57 +01:00
|
|
|
"users",
|
|
|
|
"teams",
|
2022-02-01 18:41:02 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
def get_fields(self, request, obj=None):
|
|
|
|
return super().get_fields(request, obj) + [
|
2022-11-16 13:27:57 +01:00
|
|
|
"users",
|
|
|
|
"teams",
|
2022-02-01 18:41:02 +01:00
|
|
|
]
|
2021-08-19 13:02:31 +02:00
|
|
|
|
2024-04-03 08:29:19 +02:00
|
|
|
|
2021-08-19 13:02:31 +02:00
|
|
|
admin.site.register(Ema, EmaAdmin)
|