Skip to content
Snippets Groups Projects
Commit d7d9b45f authored by Pelle Koster's avatar Pelle Koster
Browse files

more django 4.2 compatibility

parent 9a606053
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,14 @@ class PricedItem(models.Model): ...@@ -23,7 +23,14 @@ class PricedItem(models.Model):
name = models.CharField(max_length=255, blank=False, unique=True) name = models.CharField(max_length=255, blank=False, unique=True)
display_name = models.CharField(max_length=255, blank=False) 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) stripe_product_id = models.CharField(max_length=40, blank=False, unique=True)
# The following items is required for ItemKind.REGISTRATION_TYPE # The following items is required for ItemKind.REGISTRATION_TYPE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment