Allowed more values.

see #1087
This commit is contained in:
Antoine Nguyen
2017-04-03 14:04:57 +02:00
parent 50397bb6d8
commit aeb834b9cf
5 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -392,7 +392,7 @@ class User(PermissionsMixin):
self.password = row[2].strip()
self.first_name = row[3].strip()
self.last_name = row[4].strip()
self.is_active = (row[5].strip() in ["True", "1", "yes", "y"])
self.is_active = (row[5].strip().lower() in ["true", "1", "yes", "y"])
self.save()
self.role = desired_role
self.post_create(user)