Silence 90% of remaining Django 1.8 model warnings.

This commit is contained in:
Roberto Rosario
2016-01-28 05:43:08 -04:00
parent d5c73eaad6
commit 27d8644438
29 changed files with 264 additions and 44 deletions

View File

@@ -1,10 +1,10 @@
from __future__ import unicode_literals
from django.apps import apps
from django.utils.translation import ugettext_lazy as _
from acls import ModelPermission
from common import MayanAppConfig, menu_facet, menu_object, menu_sidebar
from documents.models import Document
from navigation import SourceColumn
from .links import (
@@ -25,6 +25,10 @@ class DocumentCommentsApp(MayanAppConfig):
def ready(self):
super(DocumentCommentsApp, self).ready()
Document = apps.get_model(
app_label='documents', model_name='Document'
)
Comment = self.get_model('Comment')
ModelPermission.register(