mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
Fix default admin user
- Fix error: RelatedObjectDoesNotExist: User has no userattributes. "instances/views.py", line 162, in check_user_quota
This commit is contained in:
parent
9057d3bebe
commit
8cdd0b5a0f
1 changed files with 1 additions and 0 deletions
|
|
@ -11,6 +11,7 @@ def add_useradmin(apps, schema_editor):
|
|||
admin = User.objects.create_superuser('admin', None, 'admin', last_login=timezone.now())
|
||||
UserAttributes(user=admin, max_instances=-1, max_cpus=-1, max_memory=-1, max_disk_size=-1).save()
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue