2018-08-31 14:46:35 +02:00
|
|
|
from django.contrib import admin
|
2018-11-22 22:52:15 +01:00
|
|
|
from django.contrib.auth.models import Permission
|
2018-11-27 09:07:12 +01:00
|
|
|
from simple_history.admin import SimpleHistoryAdmin
|
2018-08-31 14:46:35 +02:00
|
|
|
|
2018-10-06 00:03:02 +02:00
|
|
|
from .models import School, Profile, CotisationHistory
|
2018-09-01 21:57:09 +02:00
|
|
|
|
2018-12-23 21:48:49 +01:00
|
|
|
class ProfileAdmin(SimpleHistoryAdmin):
|
|
|
|
search_fields = ('user__username', 'user__first_name', 'user__last_name')
|
|
|
|
|
2018-11-27 09:07:12 +01:00
|
|
|
admin.site.register(Permission, SimpleHistoryAdmin)
|
|
|
|
admin.site.register(School, SimpleHistoryAdmin)
|
2018-12-23 21:48:49 +01:00
|
|
|
admin.site.register(Profile, ProfileAdmin)
|
2018-11-27 09:07:12 +01:00
|
|
|
admin.site.register(CotisationHistory, SimpleHistoryAdmin)
|