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
8a7a3e75
Commit
8a7a3e75
authored
Aug 17, 2012
by
benjaoming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New app label for notifications
parent
63b6da76
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
wiki/migrations/0007_auto__add_articlesubscription.py
+0
-0
wiki/plugins/notifications/models.py
+6
-0
wiki/plugins/notifications/settings.py
+3
-0
No files found.
wiki/migrations/0007_auto__add_articlesubscription.py
0 → 100644
View file @
8a7a3e75
This diff is collapsed.
Click to expand it.
wiki/plugins/notifications/models.py
View file @
8a7a3e75
...
@@ -11,6 +11,8 @@ from wiki.plugins.notifications import ARTICLE_EDIT
...
@@ -11,6 +11,8 @@ from wiki.plugins.notifications import ARTICLE_EDIT
from
wiki
import
models
as
wiki_models
from
wiki
import
models
as
wiki_models
from
wiki.core
import
plugins_registry
from
wiki.core
import
plugins_registry
from
.
import
settings
class
ArticleSubscription
(
wiki_models
.
pluginbase
.
ArticlePlugin
,
Subscription
):
class
ArticleSubscription
(
wiki_models
.
pluginbase
.
ArticlePlugin
,
Subscription
):
def
__unicode__
(
self
):
def
__unicode__
(
self
):
...
@@ -19,6 +21,10 @@ class ArticleSubscription(wiki_models.pluginbase.ArticlePlugin, Subscription):
...
@@ -19,6 +21,10 @@ class ArticleSubscription(wiki_models.pluginbase.ArticlePlugin, Subscription):
'article'
:
self
.
article
.
current_revision
.
title
,
'article'
:
self
.
article
.
current_revision
.
title
,
'type'
:
self
.
notification_type
.
label
})
'type'
:
self
.
notification_type
.
label
})
class
Meta
:
app_label
=
settings
.
APP_LABEL
def
default_url
(
article
,
urlpath
=
None
):
def
default_url
(
article
,
urlpath
=
None
):
try
:
try
:
if
not
urlpath
:
if
not
urlpath
:
...
...
wiki/plugins/notifications/settings.py
View file @
8a7a3e75
#from django.conf import settings as django_settings
#from django.conf import settings as django_settings
APP_LABEL
=
'wiki'
\ 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