From bdb0b01a74b4891ddb097537e79a05a77f917876 Mon Sep 17 00:00:00 2001
From: Dominik George <dominik.george@teckids.org>
Date: Wed, 27 Jun 2018 16:27:18 +0200
Subject: [PATCH] Add models for addition registration fields, advances #15,
 #26, #27.

---
 ticdesk_events/models.py | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/ticdesk_events/models.py b/ticdesk_events/models.py
index ecf0f76..646b9bc 100644
--- a/ticdesk_events/models.py
+++ b/ticdesk_events/models.py
@@ -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:
-- 
GitLab