Commits

Ian George  committed 3f98784

Fixed a silly import error on the config management commands

  • Participants
  • Parent commits 795a47e

Comments (0)

Files changed (1)

File quiet/common/management/commands/utils.py

 from django.core.management.base import BaseCommand, CommandError
 from django.db.models import get_apps
-from quiet.common import conf
 
 class CommonCommand(BaseCommand):
     
     def get_settings_configs(self, app_list):
+        from quiet.common.conf import Config
+
         if not app_list:
             for app in get_apps():
                 #app.__name__ looks like 'app_module.models' so we remove the .model
             except ImportError:
                 continue
 
-            print module
-
             for key,value in module.__dict__.items():
                 try:
-                    use = issubclass(value, conf.Config)
+                    use = issubclass(value, Config)
                 except TypeError:
                     continue