1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-01-12 16:35:17 +00:00

Update views.py

fix  request.user.userattributes in instance views.py error
This commit is contained in:
lvhaidong 2019-04-02 13:42:57 +08:00 committed by GitHub
parent ad373cff7b
commit abd53175cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -154,7 +154,7 @@ def instance(request, compute_id, vname):
return free_names
def check_user_quota(instance, cpu, memory, disk_size):
ua = request.user.userattributes
ua = request.user
msg = ""
if request.user.is_superuser: