Skip to content
Snippets Groups Projects
Commit 2e712eee authored by Andreas Ellewsen's avatar Andreas Ellewsen
Browse files

Use VersionAdmin as baseclass for ConsentTypeAdmin

Enables rollback to previous version of a Consent Type in the history
part of the admin interface.
parent 6513dad3
No related branches found
No related tags found
1 merge request!49Feature/orgreg ous
Pipeline #92496 passed
...@@ -78,7 +78,7 @@ class ConsentAdmin(VersionAdmin): ...@@ -78,7 +78,7 @@ class ConsentAdmin(VersionAdmin):
get_consent_type_name.short_description = "Consent name" # type: ignore get_consent_type_name.short_description = "Consent name" # type: ignore
class ConsentTypeAdmin(admin.ModelAdmin): class ConsentTypeAdmin(VersionAdmin):
list_display = ( list_display = (
"id", "id",
"name_en", "name_en",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment