From 33293d2ba8ea3a531db2b40662603274b0af91e1 Mon Sep 17 00:00:00 2001 From: jorgepastorr Date: Tue, 20 Aug 2024 10:46:04 +0200 Subject: [PATCH] musicias show_history --- orchestra/contrib/musician/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/orchestra/contrib/musician/views.py b/orchestra/contrib/musician/views.py index 50ced802..315f761b 100644 --- a/orchestra/contrib/musician/views.py +++ b/orchestra/contrib/musician/views.py @@ -66,7 +66,7 @@ from django.http import HttpResponseNotFound, Http404 class HistoryView(CustomContextMixin, UserTokenRequiredMixin, View): - def get_object(self, pk): + def check_resource(self, pk): related_resources = self.get_all_resources() account = related_resources.filter(resource_id__verbose_name='account-disk').first() @@ -81,7 +81,7 @@ class HistoryView(CustomContextMixin, UserTokenRequiredMixin, View): context = { 'ids': pk } - self.get_object(pk) + self.check_resource(pk) return render(request, "musician/history.html", context) # TODO: funcion de dashborad, mirar como no repetir esta funcion