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
380b8c23
Commit
380b8c23
authored
Nov 09, 2016
by
Willard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make dish in URL plural
parent
bee55882
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
views.py
canteeneo/views.py
+3
-3
No files found.
canteeneo/views.py
View file @
380b8c23
...
@@ -141,7 +141,7 @@ def delete_stall(stall_id):
...
@@ -141,7 +141,7 @@ def delete_stall(stall_id):
return
redirect
(
url_for
(
'stalls'
))
return
redirect
(
url_for
(
'stalls'
))
@
app
.
route
(
'/stalls/<int:stall_id>/dish/new'
,
methods
=
[
'GET'
,
'POST'
])
@
app
.
route
(
'/stalls/<int:stall_id>/dish
es
/new'
,
methods
=
[
'GET'
,
'POST'
])
@
login_required
@
login_required
@
stall_validate
@
stall_validate
def
new_dish
(
stall_id
):
def
new_dish
(
stall_id
):
...
@@ -161,7 +161,7 @@ def new_dish(stall_id):
...
@@ -161,7 +161,7 @@ def new_dish(stall_id):
else
:
else
:
return
render_template
(
'newdish.html'
,
form
=
form
,
stall
=
stall
)
return
render_template
(
'newdish.html'
,
form
=
form
,
stall
=
stall
)
@
app
.
route
(
'/stalls/<int:stall_id>/dish/<int:dish_id>/edit'
,
methods
=
[
'GET'
,
'POST'
])
@
app
.
route
(
'/stalls/<int:stall_id>/dish
es
/<int:dish_id>/edit'
,
methods
=
[
'GET'
,
'POST'
])
@
login_required
@
login_required
@
dish_validate
@
dish_validate
def
edit_dish
(
stall_id
,
dish_id
):
def
edit_dish
(
stall_id
,
dish_id
):
...
@@ -188,7 +188,7 @@ def edit_dish(stall_id, dish_id):
...
@@ -188,7 +188,7 @@ def edit_dish(stall_id, dish_id):
return
render_template
(
'editdish.html'
,
form
=
form
,
stall
=
stall
,
dish
=
dish
)
return
render_template
(
'editdish.html'
,
form
=
form
,
stall
=
stall
,
dish
=
dish
)
@
app
.
route
(
'/stalls/<int:stall_id>/dish/<int:dish_id>/delete'
,
methods
=
[
'POST'
])
@
app
.
route
(
'/stalls/<int:stall_id>/dish
es
/<int:dish_id>/delete'
,
methods
=
[
'POST'
])
@
login_required
@
login_required
@
dish_validate
@
dish_validate
def
delete_dish
(
stall_id
,
dish_id
):
def
delete_dish
(
stall_id
,
dish_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