From 2e712eeec24d9997a502dc3033e8328387865e6c Mon Sep 17 00:00:00 2001
From: Andreas Ellewsen <andreas@ellewsen.no>
Date: Wed, 8 Sep 2021 12:45:26 +0200
Subject: [PATCH] Use VersionAdmin as baseclass for ConsentTypeAdmin

Enables rollback to previous version of a Consent Type in the history
part of the admin interface.
---
 greg/admin.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/greg/admin.py b/greg/admin.py
index 5f6e2634..fa833b23 100644
--- a/greg/admin.py
+++ b/greg/admin.py
@@ -78,7 +78,7 @@ class ConsentAdmin(VersionAdmin):
     get_consent_type_name.short_description = "Consent name"  # type: ignore
 
 
-class ConsentTypeAdmin(admin.ModelAdmin):
+class ConsentTypeAdmin(VersionAdmin):
     list_display = (
         "id",
         "name_en",
-- 
GitLab