From 2935c9d382d52d2041391240d1a52ea712bbf02f Mon Sep 17 00:00:00 2001 From: catborise Date: Wed, 23 Aug 2023 09:07:35 +0300 Subject: [PATCH 1/3] update django 3.2.20 -> 4.2.4 --- .travis.yml | 2 +- README.md | 2 +- conf/requirements.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 10e31c5..24fcf3b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,7 @@ language: python python: - "3.9" env: - - DJANGO=3.2.15 + - DJANGO=4.2.4 install: - pip install -r dev/requirements.txt script: diff --git a/README.md b/README.md index 2027439..cbbfb29 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ [![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/retspen/webvirtcloud) # WebVirtCloud -###### Python 3.x & Django 3.2 LTS +###### Python 3.x & Django 4.2 LTS ## Features * QEMU/KVM Hypervisor Management diff --git a/conf/requirements.txt b/conf/requirements.txt index 72985da..b0529f1 100644 --- a/conf/requirements.txt +++ b/conf/requirements.txt @@ -1,4 +1,4 @@ -Django==3.2.20 +Django==4.2.4 django_bootstrap5==23.3 django-bootstrap-icons==0.8.3 django-login-required-middleware==0.9.0 From 56c92d90b58d18a67f71e8d03c641eb9cb62cc83 Mon Sep 17 00:00:00 2001 From: catborise Date: Wed, 23 Aug 2023 09:08:25 +0300 Subject: [PATCH 2/3] fix show snapshot exist indicator --- static/icon_cache/camera_None_None_None.svg | 11 +++++++++++ static/icon_cache/download_None_None_None.svg | 11 +++++++++++ vrtManager/instance.py | 2 +- 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 static/icon_cache/camera_None_None_None.svg create mode 100644 static/icon_cache/download_None_None_None.svg diff --git a/static/icon_cache/camera_None_None_None.svg b/static/icon_cache/camera_None_None_None.svg new file mode 100644 index 0000000..47d4ed0 --- /dev/null +++ b/static/icon_cache/camera_None_None_None.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/static/icon_cache/download_None_None_None.svg b/static/icon_cache/download_None_None_None.svg new file mode 100644 index 0000000..5d28ba6 --- /dev/null +++ b/static/icon_cache/download_None_None_None.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/vrtManager/instance.py b/vrtManager/instance.py index cff2085..9cbe83e 100644 --- a/vrtManager/instance.py +++ b/vrtManager/instance.py @@ -1368,7 +1368,7 @@ class wvmInstance(wvmConnect): name = name.replace("s1", "s2") self.create_external_snapshot(name, date, desc) - def get_snapshot(self, flag=VIR_DOMAIN_SNAPSHOT_LIST_INTERNAL): + def get_snapshot(self, flag=VIR_DOMAIN_SNAPSHOT_LIST_INTERNAL|VIR_DOMAIN_SNAPSHOT_LIST_EXTERNAL): snapshots = [] snapshot_list = self.instance.snapshotListNames(flag) for snapshot in snapshot_list: From cf6f74f6c35876256fa61bc81c4c4825e3e3fa1b Mon Sep 17 00:00:00 2001 From: catborise Date: Wed, 23 Aug 2023 09:25:12 +0300 Subject: [PATCH 3/3] fix sr-only toggle dropdown to hide --- instances/templates/instances/access_tab.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/instances/templates/instances/access_tab.html b/instances/templates/instances/access_tab.html index 813ba8e..ce44d95 100644 --- a/instances/templates/instances/access_tab.html +++ b/instances/templates/instances/access_tab.html @@ -62,12 +62,11 @@ {% endif %} {% if instance.status == 1 %} -
+