Skip to content
Snippets Groups Projects
Commit bdb0b01a authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Add models for addition registration fields, advances #15, #26, #27.

parent f4e763a1
No related branches found
No related tags found
1 merge request!20Add dynamic fields to event registration
......@@ -19,6 +19,22 @@ class Voucher(models.Model):
used = models.BooleanField(default=False)
used_person_uid = models.CharField(max_length=20, blank=True, null=True)
class RegistrationFieldSet(models.Model):
class Meta:
app_label = 'ticdesk_events'
project_cn = models.CharField(max_length=50)
person_uid = models.CharField(max_length=20)
class RegistrationField(models.Model):
class Meta:
app_label = 'ticdesk_events'
title = models.CharField(max_length=30)
content = models.CharField(max_length=30)
registrationfieldset = models.ForiegnKey(RegistrationFieldSet)
# FIXME make inheritance from TeckidsGroup work
class TeckidsProject(ldapdb.models.Model, TeckidsLdapMixin):
class Meta:
......
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