Renamed comments app to document_comments to avoid conflics with django comments app
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from django.conf.urls.defaults import patterns, url
|
||||
|
||||
urlpatterns = patterns('comments.views',
|
||||
urlpatterns = patterns('document_comments.views',
|
||||
url(r'^(?P<comment_id>\d+)/delete/$', 'comment_delete', (), 'comment_delete'),
|
||||
url(r'^multiple/delete/$', 'comment_multiple_delete', (), 'comment_multiple_delete'),
|
||||
url(r'^add_to_document(?P<document_id>\d+)/$', 'comment_add', (), 'comment_add'),
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
from django.contrib.comments.models import Comment
|
||||
from comments import comment_delete
|
||||
from document_comments import comment_delete
|
||||
|
||||
|
||||
def get_comments_subtemplate(obj):
|
||||
|
||||
@@ -10,8 +10,8 @@ from django.contrib.sites.models import Site
|
||||
from permissions.api import check_permissions
|
||||
from documents.models import Document
|
||||
|
||||
from comments import PERMISSION_COMMENT_DELETE, PERMISSION_COMMENT_CREATE
|
||||
from comments.forms import CommentForm
|
||||
from document_comments import PERMISSION_COMMENT_DELETE, PERMISSION_COMMENT_CREATE
|
||||
from document_comments.forms import CommentForm
|
||||
|
||||
|
||||
def comment_delete(request, comment_id=None, comment_id_list=None):
|
||||
|
||||
@@ -142,7 +142,7 @@ INSTALLED_APPS = (
|
||||
'folders',
|
||||
'taggit',
|
||||
'tags',
|
||||
'comments',
|
||||
'document_comments',
|
||||
)
|
||||
|
||||
TEMPLATE_CONTEXT_PROCESSORS = (
|
||||
|
||||
Reference in New Issue
Block a user