From acaaaf554e794b5b4cc2e0eacb161818039ec9d6 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sat, 11 Mar 2023 11:54:54 +0000 Subject: [PATCH] Clean up old templates and remove duplicate heading --- core/templates/partials/profit-info.html | 27 ------------------------ core/views/profit.py | 2 -- 2 files changed, 29 deletions(-) delete mode 100644 core/templates/partials/profit-info.html diff --git a/core/templates/partials/profit-info.html b/core/templates/partials/profit-info.html deleted file mode 100644 index 6de3255..0000000 --- a/core/templates/partials/profit-info.html +++ /dev/null @@ -1,27 +0,0 @@ -{% load cache %} -{% load cachalot cache %} -{% get_last_invalidation 'core.Platform' as last %} -{% include 'mixins/partials/notify.html' %} -{# cache 600 objects_platform_profit request.user.id object_list type last #} -{% for platform_name, profit_map in object_list.items %} -

{{ platform_name }}

- - - - - {% for item in profit_map.values %} - - - - {% endfor %} - -
id
{{ item }} -
-{% endfor %} -{# endcache #} \ No newline at end of file diff --git a/core/views/profit.py b/core/views/profit.py index ecaa11f..7b25012 100644 --- a/core/views/profit.py +++ b/core/views/profit.py @@ -14,8 +14,6 @@ log = logs.get_logger(__name__) class Profit(LoginRequiredMixin, OTPRequiredMixin, ObjectRead): context_object_name_singular = "profit" context_object_name = "profit" - page_title = "Profit info (USD)" - # detail_template = "partials/profit-info.html" def get_object(self, **kwargs): res = synchronize_async_helper(