mirror of
https://github.com/nanoy42/coope
synced 2024-12-23 15:33:45 +00:00
commit
924e1cb60f
1 changed files with 4 additions and 1 deletions
|
@ -4,7 +4,10 @@ from simple_history.admin import SimpleHistoryAdmin
|
|||
|
||||
from .models import School, Profile, CotisationHistory
|
||||
|
||||
class ProfileAdmin(SimpleHistoryAdmin):
|
||||
search_fields = ('user__username', 'user__first_name', 'user__last_name')
|
||||
|
||||
admin.site.register(Permission, SimpleHistoryAdmin)
|
||||
admin.site.register(School, SimpleHistoryAdmin)
|
||||
admin.site.register(Profile, SimpleHistoryAdmin)
|
||||
admin.site.register(Profile, ProfileAdmin)
|
||||
admin.site.register(CotisationHistory, SimpleHistoryAdmin)
|
Loading…
Reference in a new issue