Commit 8a7a3e75 by benjaoming

New app label for notifications

parent 63b6da76
......@@ -11,6 +11,8 @@ from wiki.plugins.notifications import ARTICLE_EDIT
from wiki import models as wiki_models
from wiki.core import plugins_registry
from . import settings
class ArticleSubscription(wiki_models.pluginbase.ArticlePlugin, Subscription):
def __unicode__(self):
......@@ -18,6 +20,10 @@ class ArticleSubscription(wiki_models.pluginbase.ArticlePlugin, Subscription):
{'user': self.settings.user.username,
'article': self.article.current_revision.title,
'type': self.notification_type.label})
class Meta:
app_label = settings.APP_LABEL
def default_url(article, urlpath=None):
try:
......
#from django.conf import settings as django_settings
APP_LABEL = 'wiki'
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment