From: Christopher Allan Webber Date: Fri, 8 Aug 2014 18:18:57 +0000 (-0500) Subject: Okay, we don't know that indexes are falsey, so let's make it clearer. Yeek! X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=113d1a280e190275f5f6a8ab9320ce5edc529487;p=mediagoblin.git Okay, we don't know that indexes are falsey, so let's make it clearer. Yeek! --- diff --git a/mediagoblin/db/migrations.py b/mediagoblin/db/migrations.py index 619345c0..9e632170 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 users_uploader_index is None and users_username_index is None: # We don't need to do anything. # The database isn't in a state where it needs fixing #