mirror of
https://github.com/Labelbase/Labelbase.git
synced 2026-08-18 13:09:04 +02:00
.
This commit is contained in:
parent
c334c7513d
commit
cd8ec6c614
1 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ from django.views.generic.list import ListView
|
|||
from two_factor.views import OTPRequiredMixin
|
||||
from two_factor.views.utils import class_view_decorator
|
||||
|
||||
from labelbase.models import Label
|
||||
from labelbase.models import Label
|
||||
|
||||
class HomeView(TemplateView):
|
||||
template_name = 'home.html'
|
||||
|
|
@ -17,7 +17,7 @@ class LabelbaseView(ListView):
|
|||
template_name = 'labelbase.html'
|
||||
|
||||
def get_queryset(self):
|
||||
self.labelbase_id = self.kwargs['labelbase_id']
|
||||
labelbase_id = self.kwargs['labelbase_id']
|
||||
qs = Label.objects.filter(user=self.request.user, labelbase_id=labelbase_id)
|
||||
return qs.order_by(order_by="-id")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue