Hi Jonas,
I had a similar problem (wanted to restrict queryset of
a(ModelMultipleChoiceField by user), this is what i did :
In the init method of the form pass user as the argument and in the
views.py file when instantiating the form pass the param
user=request.user
see below for about how to re
Hello,
How would I limit the results of a foreign key of a queryset ?
Ie. I have the models Person and Task. I want to get all Person's but only get
their 2 latest tasks.
Person__task points to Task__name
It's a ManyToMany Relationship.
Jonas Geiregat
jo...@geiregat.org
--
You received
2 matches
Mail list logo