Skip to content

Commit

Permalink
fix some whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
paltman committed Aug 23, 2010
1 parent 9a1c6e1 commit 16e0afc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nashvegas/utils.py
Expand Up @@ -3,6 +3,7 @@
from django.db import connections, router, models, DEFAULT_DB_ALIAS
from django.utils.datastructures import SortedDict


def get_sql_for_new_models():
"""
Unashamedly copied and tweaked from djang.core.management.commands.syncdb
Expand All @@ -27,7 +28,7 @@ def model_installed(model):
converter = connection.introspection.table_name_converter
return not ((converter(opts.db_table) in tables) or
(opts.auto_created and converter(opts.auto_created._meta.db_table) in tables))

manifest = SortedDict(
(app_name, filter(model_installed, model_list))
for app_name, model_list in all_models
Expand Down

0 comments on commit 16e0afc

Please sign in to comment.