Merge branch 'feature/document_signature_app' into feature/ACL_support_w_permission_refactor

Conflicts:
	apps/django_gpg/__init__.py
	apps/django_gpg/views.py
	apps/tags/__init__.py
This commit is contained in:
Roberto Rosario
2012-01-01 20:50:28 -04:00
36 changed files with 1457 additions and 228 deletions

View File

@@ -1,6 +1,7 @@
from django.utils.translation import ugettext_lazy as _
from django.conf import settings
from django.contrib.comments.models import Comment
from django.contrib.contenttypes import generic
from navigation.api import register_links, register_model_list_columns
from permissions.models import PermissionNamespace, Permission
@@ -41,3 +42,12 @@ register_model_list_columns(Comment, [
register_links(['comments_for_object', 'comment_add', 'comment_delete', 'comment_multiple_delete'], [comment_add], menu_name='sidebar')
register_links(Comment, [comment_delete])
register_links(Document, [comments_for_object], menu_name='form_header')
Document.add_to_class(
'comments',
generic.GenericRelation(
Comment,
content_type_field='content_type',
object_id_field='object_pk'
)
)