Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
Respect My Net
Commits
cab34761
Commit
cab34761
authored
Feb 15, 2016
by
Okhin
Browse files
Fixing the syntax error in the JSON Mixin issue #22
parent
a954f234
Changes
1
Hide whitespace changes
Inline
Side-by-side
bt/views.py
View file @
cab34761
...
...
@@ -143,7 +143,7 @@ def sendverifymail(service,to,body):
class
JSONMixin
(
object
):
def
get
(
self
,
request
,
*
args
,
**
kwargs
):
return
http
.
HttpResponse
(
seri
e
lizers
.
serialize
(
'json'
,
self
.
get_queryset
())
return
http
.
HttpResponse
(
seri
a
lizers
.
serialize
(
'json'
,
self
.
get_queryset
())
)
class
AddForm
(
FormView
,
MultipleObjectMixin
):
template
=
'index.html'
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment