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
edx
django-wiki
Commits
8e76eaeb
Commit
8e76eaeb
authored
Aug 18, 2012
by
Bridger Maxwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IMPORTANT: Fix this. I just commented out a line that was causing trouble.
parent
96328e37
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
wiki/models/pluginbase.py
+3
-1
No files found.
wiki/models/pluginbase.py
View file @
8e76eaeb
...
@@ -225,6 +225,7 @@ def update_simple_plugins(instance, *args, **kwargs):
...
@@ -225,6 +225,7 @@ def update_simple_plugins(instance, *args, **kwargs):
plugins to match this article revision"""
plugins to match this article revision"""
if
kwargs
.
get
(
'created'
,
False
):
if
kwargs
.
get
(
'created'
,
False
):
p_revisions
=
SimplePlugin
.
objects
.
filter
(
article
=
instance
.
article
,
deleted
=
False
)
p_revisions
=
SimplePlugin
.
objects
.
filter
(
article
=
instance
.
article
,
deleted
=
False
)
p_revisions
.
update
(
revision
=
instance
)
# TODO: This was breaking things. SimplePlugin doesn't have a revision?
#p_revisions.update(revision=instance)
signals
.
post_save
.
connect
(
update_simple_plugins
,
ArticleRevision
)
signals
.
post_save
.
connect
(
update_simple_plugins
,
ArticleRevision
)
\ No newline at end of file
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