diff --git a/accounts/templates/profile.html b/accounts/templates/profile.html index fb2beaa..92b0ef6 100644 --- a/accounts/templates/profile.html +++ b/accounts/templates/profile.html @@ -115,4 +115,3 @@ {% endblock %} - diff --git a/accounts/views.py b/accounts/views.py index 0239f4c..9b8d5a1 100644 --- a/accounts/views.py +++ b/accounts/views.py @@ -1,4 +1,3 @@ -from django.conf import settings from django.core.validators import ValidationError from django.http import HttpResponseRedirect from django.shortcuts import render @@ -22,7 +21,6 @@ def profile(request): error_messages = [] # user = User.objects.get(id=request.user.id) publickeys = UserSSHKey.objects.filter(user_id=request.user.id) - themes_list = os.listdir(settings.SCSS_DIR +"/wvc-theme") if request.method == 'POST': if 'username' in request.POST: @@ -104,7 +102,7 @@ def account(request, user_id): return HttpResponseRedirect(request.get_full_path()) if 'add' in request.POST: inst_id = request.POST.get('inst_id', '') - + if AppSettings.objects.get(key="ALLOW_INSTANCE_MULTIPLE_OWNER").value == 'True': check_inst = UserInstance.objects.filter(instance_id=int(inst_id), user_id=int(user_id)) else: diff --git a/admin/templates/admin/common/list.html b/admin/templates/admin/common/list.html index 7292f65..8d76c0b 100644 --- a/admin/templates/admin/common/list.html +++ b/admin/templates/admin/common/list.html @@ -6,18 +6,18 @@ {% block content %} {% if create_url %} -{% icon 'plus' %} {%trans "Create New" %} + {% icon 'plus' %} {%trans "Create New" %} {% endif %} -
| {{ object }}
{% icon 'edit' %} {%trans "Edit"%}
{% if extra_urls %}
- {% for url in extra_urls %}
- {{ url.1 }}
- {% endfor %}
+ {% for url in extra_urls %}
+ {{ url.1 }}
+ {% endfor %}
{% endif %}
{% icon 'times' %} {%trans "Delete" %}
diff --git a/admin/views.py b/admin/views.py
index f6c47cd..a7fbed9 100644
--- a/admin/views.py
+++ b/admin/views.py
@@ -4,7 +4,7 @@ from django.shortcuts import get_object_or_404, redirect, render
from django.utils.translation import ugettext_lazy as _
from accounts.models import UserAttributes
-from appsettings.views import AppSettings
+from appsettings.models import AppSettings
from logs.models import Logs
from . import forms
diff --git a/appsettings/migrations/0002_auto_20200527_1603.py b/appsettings/migrations/0002_auto_20200527_1603.py
index 9e5a083..5a94432 100644
--- a/appsettings/migrations/0002_auto_20200527_1603.py
+++ b/appsettings/migrations/0002_auto_20200527_1603.py
@@ -102,4 +102,4 @@ class Migration(migrations.Migration):
operations = [
migrations.RunPython(add_default_settings, del_default_settings),
- ]
\ No newline at end of file
+ ]
diff --git a/computes/templates/create_comp_block.html b/computes/templates/create_comp_block.html
index 4f6797f..b552d67 100644
--- a/computes/templates/create_comp_block.html
+++ b/computes/templates/create_comp_block.html
@@ -1,7 +1,7 @@
{% load i18n %}
{% load bootstrap4 %}
{% load font_awesome %}
-
+
{% trans "TCP" %}
{% trans "SSH" %}
{% trans "TLS" %}
diff --git a/computes/urls.py b/computes/urls.py
index 55013e1..dd66532 100644
--- a/computes/urls.py
+++ b/computes/urls.py
@@ -1,6 +1,7 @@
from django.urls import path, include
from . import views
+from . import forms
from create.views import create_instance, create_instance_select_type
from instances.views import instances
from interfaces.views import interface, interfaces
@@ -8,7 +9,6 @@ from networks.views import network, networks
from nwfilters.views import nwfilter, nwfilters
from secrets.views import secrets
from storages.views import get_volumes, storage, storages
-from . import forms
urlpatterns = [
path('', views.computes, name='computes'),
diff --git a/create/views.py b/create/views.py
index 5b2b6c6..0518ab5 100644
--- a/create/views.py
+++ b/create/views.py
@@ -205,11 +205,11 @@ def create_instance(request, compute_id, arch, machine):
error_messages.append(error_msg)
else:
clone_path = conn.clone_from_template(
- data['name'],
- templ_path,
- data['storage'],
- meta_prealloc,
- default_disk_owner_uid,
+ data['name'],
+ templ_path,
+ data['storage'],
+ meta_prealloc,
+ default_disk_owner_uid,
default_disk_owner_gid)
volume = dict()
volume['path'] = clone_path
diff --git a/instances/templates/allinstances_index_nongrouped.html b/instances/templates/allinstances_index_nongrouped.html
index 8c248a5..76dad7b 100644
--- a/instances/templates/allinstances_index_nongrouped.html
+++ b/instances/templates/allinstances_index_nongrouped.html
@@ -1,5 +1,5 @@
{% load i18n %}
-
|