Thank you.
On 6 Jul 2020, at 05:24, Stephen J. Butler wrote:
def get_queryset(self):
qs = super().get_queryset()
return qs.filter(user__id=self.kwargs['userlist'])
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To un
Hi,
Do you hire contract based python/django freelancer?
I can help you in this and related tasks
Best,
Karan Sahu
On Monday, July 6, 2020, Clive Bruton wrote:
> I am struggling with getting kwarg values into a queryset filter:
>
> class UsersItemsView(ListView):
> template_name = 'tes
get_queryset() isn't documented as taking any args at all, let alone the
kwargs of the request. You sometimes see people do "def get_queryset(self,
**kwargs)" to future-proof themselves in case get_queryset does, one day,
accept args. But it doesn't right now.
To get the kwargs for the request loo
I am struggling with getting kwarg values into a queryset filter:
class UsersItemsView(ListView):
template_name = 'testapp/user_item_list.html'
def get_queryset(self, **kwargs):
print('kwargs-userlist')
print(kwargs)
#return Item.objects.filter(user__username='cli
4 matches
Mail list logo