This commit is contained in:
Xavier Fiechter 2023-02-03 13:40:28 +01:00
parent b2ea245c1b
commit be3c63f623

View file

@ -22,7 +22,7 @@ class LabelbaseView(ListView):
def get_context_data(self, **kwargs):
context = super(LabelbaseView, self).get_context_data(**kwargs)
context['labelbase'] = Labelbase.objects.get(id=self.kwargs['labelbase_id'], user_id=self.request.user.id)
context['labelbase'] = Labelbase.objects.filter(id=self.kwargs['labelbase_id'], user_id=self.request.user.id).first()
return context