From d7d9b45f8553c6778d73c0bcb7452442198ad139 Mon Sep 17 00:00:00 2001
From: Pelle Koster <pelle.koster@geant.org>
Date: Mon, 27 Jan 2025 16:21:08 +0100
Subject: [PATCH] more django 4.2 compatibility

---
 stripe_checkout/stripe_checkout/models.py | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/stripe_checkout/stripe_checkout/models.py b/stripe_checkout/stripe_checkout/models.py
index d95caab..9fdaf24 100644
--- a/stripe_checkout/stripe_checkout/models.py
+++ b/stripe_checkout/stripe_checkout/models.py
@@ -23,7 +23,14 @@ class PricedItem(models.Model):
 
     name = models.CharField(max_length=255, blank=False, unique=True)
     display_name = models.CharField(max_length=255, blank=False)
-    kind = models.CharField(max_length=40, choices=ItemKind, blank=False)
+    kind = models.CharField(
+        max_length=40,
+        choices=[
+            ("REGISTRATION_TYPE", "Registration Type"),
+            ("EXTRA", "Extra"),
+        ],
+        blank=False,
+    )
     stripe_product_id = models.CharField(max_length=40, blank=False, unique=True)
 
     # The following items is required for ItemKind.REGISTRATION_TYPE
-- 
GitLab