mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
fix code conventions for pylint
This commit is contained in:
parent
4477b68a20
commit
3fa1be61af
20 changed files with 258 additions and 122 deletions
|
|
@ -3,12 +3,12 @@ from django.http import HttpResponseRedirect
|
|||
from django.utils.translation import ugettext_lazy as _
|
||||
from django.urls import reverse
|
||||
from django.contrib.auth.decorators import login_required
|
||||
from django.contrib import messages
|
||||
from libvirt import libvirtError
|
||||
from computes.models import Compute
|
||||
from networks.forms import AddNetPool
|
||||
from vrtManager.network import wvmNetwork, wvmNetworks
|
||||
from vrtManager.network import network_size
|
||||
from libvirt import libvirtError
|
||||
from django.contrib import messages
|
||||
|
||||
|
||||
@login_required
|
||||
|
|
@ -18,7 +18,6 @@ def networks(request, compute_id):
|
|||
:param compute_id:
|
||||
:return:
|
||||
"""
|
||||
|
||||
if not request.user.is_superuser:
|
||||
return HttpResponseRedirect(reverse('index'))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue