From 72f42a408dad60439cb4325e9c29f149228f4c61 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Fri, 8 Aug 2014 13:12:33 -0500 Subject: [PATCH] this negation needs parens. --- mediagoblin/db/migrations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 # -- 2.25.1