From b90c64cf5d2fc7493ed632173386d4b808196169 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Tue, 3 Apr 2018 11:32:13 +0200 Subject: [PATCH] Add link to "add a 1rm" to the list of 1rm --- gym/views.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gym/views.py b/gym/views.py index b237011..0b7b27b 100644 --- a/gym/views.py +++ b/gym/views.py @@ -299,6 +299,11 @@ class TheoreticalMaxListView(LoginRequiredMixin, QuickActionsMixin, generic.List 'category': 'secondary', 'display': 'Retourner à la machine' }, + { + 'url': '{}?equipment={}'.format(reverse('theoretical-max-create'), self.equipment.pk), + 'category': 'success', + 'display': 'Ajouter un max théorique' + }, ] def get_context_data(self, **kwargs):