aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/register/forms.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ctrack/register/forms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctrack/register/forms.py b/ctrack/register/forms.py
index 512ae9d..cca4cb9 100644
--- a/ctrack/register/forms.py
+++ b/ctrack/register/forms.py
@@ -107,7 +107,6 @@ class CAFSingleDateEventForm(forms.ModelForm):
fields = [
"type_descriptor",
"date",
- "related_caf",
"short_description",
"document_link",
"comments",
@@ -121,6 +120,7 @@ class CAFSingleDateEventForm(forms.ModelForm):
def save(self, **kwargs):
form = super().save(commit=False)
form.user = self.user
+ form.related_caf = CAF.objects.get(id=self.caf_id)
form.save()
return form