8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-22 03:13:12 +00:00

Merge branch 'fix_mandate_history' into 'dev'

fix: RegistrationError when accessing mandate history

See merge request re2o/re2o!612
This commit is contained in:
chirac 2021-04-27 20:54:27 +00:00
commit 567c20a0f1

View file

@ -29,7 +29,7 @@ from django.contrib import admin
from reversion.admin import VersionAdmin from reversion.admin import VersionAdmin
from .models import (AssoOption, DocumentTemplate, GeneralOption, HomeOption, from .models import (AssoOption, DocumentTemplate, GeneralOption, HomeOption,
MailContact, MailMessageOption, OptionalMachine, MailContact, MailMessageOption, Mandate, OptionalMachine,
OptionalTopologie, OptionalUser, RadiusKey, Reminder, OptionalTopologie, OptionalUser, RadiusKey, Reminder,
Service, SwitchManagementCred) Service, SwitchManagementCred)
@ -112,6 +112,12 @@ class DocumentTemplateAdmin(VersionAdmin):
pass pass
class MandateAdmin(VersionAdmin):
"""Admin class for mandates."""
pass
admin.site.register(OptionalUser, OptionalUserAdmin) admin.site.register(OptionalUser, OptionalUserAdmin)
admin.site.register(OptionalMachine, OptionalMachineAdmin) admin.site.register(OptionalMachine, OptionalMachineAdmin)
admin.site.register(OptionalTopologie, OptionalTopologieAdmin) admin.site.register(OptionalTopologie, OptionalTopologieAdmin)
@ -125,3 +131,4 @@ admin.site.register(SwitchManagementCred, SwitchManagementCredAdmin)
admin.site.register(AssoOption, AssoOptionAdmin) admin.site.register(AssoOption, AssoOptionAdmin)
admin.site.register(MailMessageOption, MailMessageOptionAdmin) admin.site.register(MailMessageOption, MailMessageOptionAdmin)
admin.site.register(DocumentTemplate, DocumentTemplateAdmin) admin.site.register(DocumentTemplate, DocumentTemplateAdmin)
admin.site.register(Mandate, MandateAdmin)