aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/db/migrations.py
diff options
context:
space:
mode:
Diffstat (limited to 'mediagoblin/db/migrations.py')
-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
#