diff --git a/smash/web/forms.py b/smash/web/forms.py index 145ea50ffef7337fffd5fcf67f59d143803bae32..35d4cd1a3c44c811b0fe285fcee05114079fb29d 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):