aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2014-08-08 13:12:33 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2014-08-08 13:12:33 -0500
commit72f42a408dad60439cb4325e9c29f149228f4c61 (patch)
treec9825fc292dd4fd6e60b2c40bc9fb415585326b8
parentf2a6db9088ae267950ec9f4e8ea3e39ec5ef89a2 (diff)
downloadmediagoblin-72f42a408dad60439cb4325e9c29f149228f4c61.tar.lz
mediagoblin-72f42a408dad60439cb4325e9c29f149228f4c61.tar.xz
mediagoblin-72f42a408dad60439cb4325e9c29f149228f4c61.zip
this negation needs parens.
-rw-r--r--mediagoblin/db/migrations.py2
1 files changed, 1 insertions, 1 deletions
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
#