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
05d374ff
Commit
05d374ff
authored
6 years ago
by
Carlos Vega
Browse files
Options
Downloads
Patches
Plain Diff
added error message if appointment add fails
parent
d45b25ff
No related branches found
No related tags found
3 merge requests
!208
Update/merge 12 into 13
,
!207
Merge Devel 0.12.x into Master (0.13.x)
,
!197
Bug/field missformat add appointment
Pipeline
#7722
passed
6 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
smash/web/views/appointment.py
+1
-2
1 addition, 2 deletions
smash/web/views/appointment.py
with
1 addition
and
2 deletions
smash/web/views/appointment.py
+
1
−
2
View file @
05d374ff
...
@@ -58,8 +58,7 @@ def appointment_add(request, visit_id=None):
...
@@ -58,8 +58,7 @@ def appointment_add(request, visit_id=None):
else
:
else
:
return
redirect
(
'
web.views.visit_details
'
,
id
=
visit_id
)
return
redirect
(
'
web.views.visit_details
'
,
id
=
visit_id
)
else
:
else
:
raise
ValidationError
(
"
Invalid request: Errors: {}. Non field errors: {}
"
.
format
(
form
.
errors
,
form
.
non_field_errors
()))
messages
.
add_message
(
request
,
messages
.
ERROR
,
'
{}
'
.
format
(
form
.
non_field_errors
()))
else
:
else
:
form
=
AppointmentAddForm
(
user
=
request
.
user
)
form
=
AppointmentAddForm
(
user
=
request
.
user
)
...
...
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