diff --git a/pinaxcon/registrasion/models.py b/pinaxcon/registrasion/models.py index a1aed0f92d0ced3df28b534cfe71c6b6536d1d19..77952fe122108d36235260de45b4e7a2b68a362a 100644 --- a/pinaxcon/registrasion/models.py +++ b/pinaxcon/registrasion/models.py @@ -1,6 +1,18 @@ from django.db import models +from django.utils.encoding import python_2_unicode_compatible from registrasion import models as rego + +@python_2_unicode_compatible +class DynamicValues(models.Model): + + name = models.CharField(max_length=64) + value = models.IntegerField() + + def __str__(self): + return "%s - %d" % (self.name, self.value) + + class AttendeeProfile(rego.AttendeeProfileBase): @classmethod @@ -74,6 +86,9 @@ class AttendeeProfile(rego.AttendeeProfileBase): max_length=64, blank=True, ) + db_defined_values = models.ManyToManyField( + DynamicValues + ) class DemoPayment(rego.PaymentBase):