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
03656886
Commit
03656886
authored
Nov 15, 2016
by
Willard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix FormView not returning anything on invalid form
parent
27dc41ff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
views.py
canteeneo/views.py
+1
-2
No files found.
canteeneo/views.py
View file @
03656886
...
@@ -15,7 +15,6 @@ class FormView(View):
...
@@ -15,7 +15,6 @@ class FormView(View):
if
form
.
validate
():
if
form
.
validate
():
return
self
.
render_post
(
**
kwargs
)
return
self
.
render_post
(
**
kwargs
)
flash_form_errors
(
form
)
flash_form_errors
(
form
)
elif
request
.
method
==
'GET'
:
return
self
.
render_get
(
**
kwargs
)
return
self
.
render_get
(
**
kwargs
)
def
get_form
(
self
):
def
get_form
(
self
):
raise
NotImplementedError
()
raise
NotImplementedError
()
...
...
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