mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-24 08:52:15 +00:00
Added debug info to user import
This commit is contained in:
@@ -39,12 +39,13 @@ def import_users():
|
|||||||
object.initials = row[6]
|
object.initials = row[6]
|
||||||
object.phone_number = row[7]
|
object.phone_number = row[7]
|
||||||
object.save()
|
object.save()
|
||||||
|
print("Updated " + object)
|
||||||
except ObjectDoesNotExist:
|
except ObjectDoesNotExist:
|
||||||
object = models.Profile(pk=row[0], username=row[1], email=row[3], first_name=row[4], last_name=row[5],
|
object = models.Profile(pk=row[0], username=row[1], email=row[3], first_name=row[4], last_name=row[5],
|
||||||
active=row[6], initials=row[7], phone_number=row[8])
|
active=row[6], initials=row[7], phone_number=row[8])
|
||||||
object.set_unusable_password()
|
object.set_unusable_password()
|
||||||
object.save()
|
object.save()
|
||||||
|
print("Created " + object)
|
||||||
|
|
||||||
def import_people():
|
def import_people():
|
||||||
cursor = setup_cursor()
|
cursor = setup_cursor()
|
||||||
|
|||||||
Reference in New Issue
Block a user