Okay, we don't know that indexes are falsey, so let's make it clearer. Yeek!
This commit is contained in:
parent
72f42a408d
commit
113d1a280e
@ -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
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user