Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CS123-Canteeneo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Willard Torres
CS123-Canteeneo
Commits
fbc4c82f
Commit
fbc4c82f
authored
Nov 09, 2016
by
Willard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change redirect of edit and new stall
parent
daf16ac4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
stall_views.py
canteeneo/stall_views.py
+2
-2
No files found.
canteeneo/stall_views.py
View file @
fbc4c82f
...
@@ -29,7 +29,7 @@ def new_stall():
...
@@ -29,7 +29,7 @@ def new_stall():
stall
=
Stall
(
form
.
name
.
data
,
form
.
description
.
data
,
current_user
.
id
,
form
.
location
.
data
)
stall
=
Stall
(
form
.
name
.
data
,
form
.
description
.
data
,
current_user
.
id
,
form
.
location
.
data
)
db
.
session
.
add
(
stall
)
db
.
session
.
add
(
stall
)
db
.
session
.
commit
()
db
.
session
.
commit
()
return
redirect
(
url_for
(
'stall
s'
))
return
redirect
(
url_for
(
'stall
'
,
stall_id
=
stall
.
id
))
else
:
else
:
flash_form_errors
(
form
)
flash_form_errors
(
form
)
return
redirect
(
url_for
(
'new_stall'
))
return
redirect
(
url_for
(
'new_stall'
))
...
@@ -50,7 +50,7 @@ def edit_stall(stall_id):
...
@@ -50,7 +50,7 @@ def edit_stall(stall_id):
stall
.
description
=
form
.
description
.
data
stall
.
description
=
form
.
description
.
data
stall
.
location_id
=
form
.
location
.
data
stall
.
location_id
=
form
.
location
.
data
db
.
session
.
commit
()
db
.
session
.
commit
()
return
redirect
(
url_for
(
'stall
s'
))
return
redirect
(
url_for
(
'stall
'
,
stall_id
=
stall_id
))
else
:
else
:
flash_form_errors
(
form
)
flash_form_errors
(
form
)
return
redirect
(
url_for
(
'edit_stall'
,
values
=
[(
'stall_id'
,
stall_id
)]))
return
redirect
(
url_for
(
'edit_stall'
,
values
=
[(
'stall_id'
,
stall_id
)]))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment