From: Christopher Allan Webber Date: Fri, 8 Aug 2014 18:12:33 +0000 (-0500) Subject: this negation needs parens. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=72f42a408dad60439cb4325e9c29f149228f4c61;p=mediagoblin.git this negation needs parens. --- diff --git a/mediagoblin/db/migrations.py b/mediagoblin/db/migrations.py index faf84c15..619345c0 100644 --- a/mediagoblin/db/migrations.py +++ b/mediagoblin/db/migrations.py @@ -845,7 +845,7 @@ def revert_username_index(db): # was set in models.py users_username_index = indexes.get(u'ix_core__users_username') - if not users_uploader_index or users_username_index: + if not (users_uploader_index or users_username_index): # We don't need to do anything. # The database isn't in a state where it needs fixing #