Fix up changes in fields in the migrations

Particularly the now-required on_delete parameter for ForeignKey and
OneToOneField.
This commit is contained in:
Jeff Bradberry
2019-07-09 16:42:50 -04:00
parent 1093a662f1
commit 2d81923e22
11 changed files with 80 additions and 80 deletions

View File

@@ -140,7 +140,7 @@ User.add_to_class('is_system_auditor', user_is_system_auditor)
def user_is_in_enterprise_category(user, category):
ret = (category,) in user.enterprise_auth.all().values_list('provider') and not user.has_usable_password()
ret = (category,) in user.enterprise_auth.values_list('provider') and not user.has_usable_password()
# NOTE: this if-else block ensures existing enterprise users are still able to
# log in. Remove it in a future release
if category == 'radius':