mirror of
https://github.com/Labelbase/Labelbase.git
synced 2026-08-18 13:09:04 +02:00
.
This commit is contained in:
parent
b2ea245c1b
commit
be3c63f623
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue