Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scheduling-system
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SMASCH
scheduling-system
Commits
8722ca2d
Commit
8722ca2d
authored
8 years ago
by
Piotr Matyjaszyk
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
smash/web/forms.py
+3
-2
3 additions, 2 deletions
smash/web/forms.py
with
3 additions
and
2 deletions
smash/web/forms.py
+
3
−
2
View file @
8722ca2d
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment