this negation needs parens.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Fri, 8 Aug 2014 18:12:33 +0000 (13:12 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Fri, 8 Aug 2014 18:12:33 +0000 (13:12 -0500)
mediagoblin/db/migrations.py

index faf84c151f2832b8ca0b77978999d29528bd47c6..619345c078045335158e9335f4eabe0255a3768e 100644 (file)
@@ -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
         #