Skip to content
Snippets Groups Projects
Commit 8722ca2d authored by Piotr Matyjaszyk's avatar Piotr Matyjaszyk
Browse files

Appointments field will no longer appear while creating a new worker

parent 3b989e83
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ from django.forms import ModelForm ...@@ -3,7 +3,7 @@ from django.forms import ModelForm
from .models import * 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): class SubjectAddForm(ModelForm):
...@@ -27,7 +27,8 @@ class SubjectEditForm(ModelForm): ...@@ -27,7 +27,8 @@ class SubjectEditForm(ModelForm):
class WorkerAddForm(ModelForm): class WorkerAddForm(ModelForm):
class Meta: class Meta:
model = Worker model = Worker
fields = '__all__' exclude = ['appointments']
#fields = '__all__'
class WorkerDetailForm(ModelForm): class WorkerDetailForm(ModelForm):
......
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