You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
konova/ema/admin.py

18 lines
375 B
Python

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