From 8722ca2d5af720119f2ccbe9862f5f2db5d4c419 Mon Sep 17 00:00:00 2001
From: "piotr.atyjaszyk" <piotrmk1@gmail.com>
Date: Thu, 26 Jan 2017 13:04:36 +0100
Subject: [PATCH] Appointments field will no longer appear while creating a new
 worker

---
 smash/web/forms.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/smash/web/forms.py b/smash/web/forms.py
index 145ea50f..35d4cd1a 100644
--- a/smash/web/forms.py
+++ b/smash/web/forms.py
@@ -3,7 +3,7 @@ from django.forms import ModelForm
 from .models import *
 
 """
-Redundancy? Maybe yes, but if need arises, contents of forms can be more easily customized
+Possibl redundancy, but if need arises, contents of forms can be easily customized
 """
 
 class SubjectAddForm(ModelForm):
@@ -27,7 +27,8 @@ class SubjectEditForm(ModelForm):
 class WorkerAddForm(ModelForm):
     class Meta:
         model = Worker
-        fields = '__all__'
+        exclude = ['appointments']
+        #fields = '__all__'
 
 
 class WorkerDetailForm(ModelForm):
-- 
GitLab