aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2014-08-08 13:24:59 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2014-08-08 13:24:59 -0500
commit3b104bbcefca052eb3814f015521b47d2fcbc0da (patch)
tree15da66efac70d8045466b7244ac53d94abe007a2
parent113d1a280e190275f5f6a8ab9320ce5edc529487 (diff)
downloadmediagoblin-3b104bbcefca052eb3814f015521b47d2fcbc0da.tar.lz
mediagoblin-3b104bbcefca052eb3814f015521b47d2fcbc0da.tar.xz
mediagoblin-3b104bbcefca052eb3814f015521b47d2fcbc0da.zip
Elrond keeps pointing out places I should "is not None" at :)
-rw-r--r--mediagoblin/db/migrations.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/db/migrations.py b/mediagoblin/db/migrations.py
index 9e632170..b9014045 100644
--- a/mediagoblin/db/migrations.py
+++ b/mediagoblin/db/migrations.py
@@ -869,9 +869,9 @@ def revert_username_index(db):
# table copying.
# Remove whichever of the not-used indexes are in place
- if users_uploader_index:
+ if users_uploader_index is not None:
users_uploader_index.drop()
- if users_username_index:
+ if users_username_index is not None:
users_username_index.drop()
# Given we're removing indexes then adding a unique constraint