mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2025-12-10 13:52:38 +00:00
Fix make_random_password to be a method call
This commit is contained in:
parent
4a7f6675cf
commit
b3504ae51e
|
|
@ -12,7 +12,7 @@ for username, user_details in users.items():
|
|||
if not User.objects.filter(username=username):
|
||||
user = User.objects.create_user(
|
||||
username = username,
|
||||
password = user_details.get('password', 0) or User.objects.make_random_password)
|
||||
password = user_details.get('password', 0) or User.objects.make_random_password())
|
||||
|
||||
print("👤 Created user",username)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue