diff --git a/docs/changelog.rst b/docs/changelog.rst index c6c7fb8..7a0523e 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -1,9 +1,6 @@ Changelog ========= -* :release:`0.14.4 <2023-07-22>` -* :bug:`-` add customer to disk space detail view - * :release:`0.14.3 <2023-07-22>` * :bug:`-` fix missing permission check on disk space detail view diff --git a/gnuviechadmin/gnuviechadmin/__init__.py b/gnuviechadmin/gnuviechadmin/__init__.py index 4cf17fe..233a49a 100644 --- a/gnuviechadmin/gnuviechadmin/__init__.py +++ b/gnuviechadmin/gnuviechadmin/__init__.py @@ -1,4 +1,4 @@ # import celery_app to initialize it from gnuviechadmin.celery import app as celery_app # NOQA -__version__ = "0.14.4" +__version__ = "0.14.3" diff --git a/gnuviechadmin/hostingpackages/templates/hostingpackages/customerhostingpackage_detail.html b/gnuviechadmin/hostingpackages/templates/hostingpackages/customerhostingpackage_detail.html index f610e4d..503a2a2 100644 --- a/gnuviechadmin/hostingpackages/templates/hostingpackages/customerhostingpackage_detail.html +++ b/gnuviechadmin/hostingpackages/templates/hostingpackages/customerhostingpackage_detail.html @@ -44,7 +44,7 @@ You use {{ used_space }} of the reserved disk space of {{ disk_space }} for your hosting package {% endblocktranslate %}" class="text-{% if space_level > 90.0 %}danger{% elif space_level > 80.0 %}warning{% else %}success{% endif %}">{% blocktranslate with space_level_percent=space_level|floatformat:1 trimmed%} {{ used_space }} of {{ disk_space }} ({{ space_level_percent }}%) -{% endblocktranslate %} {% translate "Details" %} +{% endblocktranslate %} {% translate "Details" %} //disk-usage/", + "/disk-usage/", CustomerHostingPackageDiskUsageDetails.as_view(), name="disk_usage_details", ), diff --git a/gnuviechadmin/hostingpackages/views.py b/gnuviechadmin/hostingpackages/views.py index 86b0b21..941e978 100644 --- a/gnuviechadmin/hostingpackages/views.py +++ b/gnuviechadmin/hostingpackages/views.py @@ -327,15 +327,6 @@ class CustomerHostingPackageDiskUsageDetails(StaffOrSelfLoginRequiredMixin, Deta pk_url_kwarg = "package" context_object_name = "hostingpackage" - customer = None - - def get_customer_object(self): - if self.customer is None: - self.customer = get_object_or_404( - get_user_model(), username=self.kwargs["user"] - ) - return self.customer - def get_queryset(self, queryset=None): return super().get_queryset().prefetch_related("customerpackagediskusage_set") @@ -356,7 +347,6 @@ class CustomerHostingPackageDiskUsageDetails(StaffOrSelfLoginRequiredMixin, Deta context_data.update( { - "customer": self.get_customer_object(), "disk_usage": disk_usage, "mysql_usage": mysql_usage, "pgsql_usage": pgsql_usage, diff --git a/pyproject.toml b/pyproject.toml index 229a81d..7347c14 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "gva" -version = "0.14.4" +version = "0.14.3" description = "gnuviechadmin web interface" authors = ["Jan Dittberner "] license = "AGPL-3+"