From 6212606b0f2f49a5de5570ddf2baff62eba29e66 Mon Sep 17 00:00:00 2001 From: Michael Ziegler Date: Fri, 5 Mar 2010 19:51:41 +0100 Subject: [PATCH] oh - *that's* why I imported models instead of Mumble... --- pyweb/mumble/management/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyweb/mumble/management/__init__.py b/pyweb/mumble/management/__init__.py index 1a4efc2..49de3a9 100644 --- a/pyweb/mumble/management/__init__.py +++ b/pyweb/mumble/management/__init__.py @@ -21,7 +21,7 @@ from django.conf import settings from django.db import connection from django.db.models import signals -from mumble.models import Mumble +from mumble import models from update_schema import update_schema from server_detect import find_existing_instances @@ -36,7 +36,7 @@ if settings.DATABASE_ENGINE == "sqlite3": cursor = connection.cursor() -tablename = Mumble._meta.db_table +tablename = models.Mumble._meta.db_table if tablename in connection.introspection.get_table_list(cursor): fields = connection.introspection.get_table_description(cursor, tablename)