Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-wiki
Overview
Overview
Details
Activity
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
django-wiki
Commits
791026aa
Commit
791026aa
authored
Jul 18, 2013
by
Adam Palay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix syntax error in views/article
parent
ac906abe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
wiki/views/article.py
+2
-2
No files found.
wiki/views/article.py
View file @
791026aa
...
@@ -88,7 +88,7 @@ class Create(FormView, ArticleMixin):
...
@@ -88,7 +88,7 @@ class Create(FormView, ArticleMixin):
# TODO: Handle individual exceptions better and give good feedback.
# TODO: Handle individual exceptions better and give good feedback.
except
Exception
,
e
:
except
Exception
,
e
:
transaction
.
rollback
()
transaction
.
rollback
()
if
self
.
request
.
user
.
is_superuser
()
:
if
self
.
request
.
user
.
is_superuser
:
messages
.
error
(
self
.
request
,
_
(
u"There was an error creating this article:
%
s"
)
%
str
(
e
))
messages
.
error
(
self
.
request
,
_
(
u"There was an error creating this article:
%
s"
)
%
str
(
e
))
else
:
else
:
messages
.
error
(
self
.
request
,
_
(
u"There was an error creating this article."
))
messages
.
error
(
self
.
request
,
_
(
u"There was an error creating this article."
))
...
@@ -646,7 +646,7 @@ def root_create(request):
...
@@ -646,7 +646,7 @@ def root_create(request):
return
redirect
(
'wiki:get'
,
path
=
root
.
path
)
return
redirect
(
'wiki:get'
,
path
=
root
.
path
)
except
NoRootURL
:
except
NoRootURL
:
pass
pass
if
not
request
.
user
.
is_superuser
()
:
if
not
request
.
user
.
is_superuser
:
return
redirect
(
settings
.
LOGIN_URL
+
"?next="
+
reverse
(
"wiki:root_create"
))
return
redirect
(
settings
.
LOGIN_URL
+
"?next="
+
reverse
(
"wiki:root_create"
))
if
request
.
method
==
'POST'
:
if
request
.
method
==
'POST'
:
create_form
=
forms
.
CreateRootForm
(
request
.
POST
)
create_form
=
forms
.
CreateRootForm
(
request
.
POST
)
...
...
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