Skip to content
Permalink
Browse files

Revert to using register decorator and check import via roundtable

__init__.
  • Loading branch information...
jambonrose committed Oct 11, 2014
1 parent 728dced commit 62baeede5bde9fc2cfce9319e07654e3fb35b803
Showing with 3 additions and 6 deletions.
  1. +1 −0 camelot/roundtable/__init__.py
  2. +0 −6 camelot/roundtable/apps.py
  3. +2 −0 camelot/roundtable/checks.py
@@ -1 +1,2 @@
from . import checks
default_app_config = 'roundtable.apps.RoundtableConfig'
@@ -1,15 +1,9 @@
# -*- coding: utf-8
from __future__ import unicode_literals
from django.apps import AppConfig
from django.core.checks import register
from .checks import check_model_str


class RoundtableConfig(AppConfig):
name = 'roundtable'
label = 'rtable'
verbose_name = 'Round Table'

def ready(self):
super(RoundtableConfig, self).ready()
register('models')(check_model_str)
@@ -1,7 +1,9 @@
# -*- coding: utf-8
from __future__ import unicode_literals
from django.core.checks import register


@register('models')
def check_model_str(app_configs=None, **kwargs):
errors = [
]

0 comments on commit 62baeed

Please sign in to comment.
You can’t perform that action at this time.