Skip to content

Commit

Permalink
Fix some pep8 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
paltman committed Jul 1, 2012
1 parent 57bf026 commit aad2127
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nashvegas/management/commands/comparedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def handle(self, *args, **options):
connections[self.db].close()
connections[self.db].settings_dict["NAME"] = self.compare_name
call_command("syncdb", interactive=False, verbosity=0)
new_sql = Popen(command.format(dbname=self.compare_name).split(),
new_sql = Popen(command.format(dbname=self.compare_name).split(),
stdout=PIPE).stdout.readlines()
connections[self.db].close()
connections[self.db].settings_dict["NAME"] = self.current_name
Expand Down
2 changes: 1 addition & 1 deletion nashvegas/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def model_installed(model):
converter = connection.introspection.table_name_converter
db_table_in = (converter(opts.db_table) in tables)
auto_create_in = (
opts.auto_created and \
opts.auto_created and
converter(opts.auto_created._meta.db_table) in tables
)
return not (db_table_in or auto_create_in)
Expand Down

0 comments on commit aad2127

Please sign in to comment.