The solution is to add the foreign key field as a list_filter, then
Django will accept the querystring parameter.
Hope that helps someone!
On Sep 13, 7:29 pm, Brandon Taylor wrote:
> Hi everyone,
>
> I have a very strange problem I'm trying to get a handle on. I need to
> filter a model admin wi
Hi everyone,
I have a very strange problem I'm trying to get a handle on. I need to
filter a model admin with a value from the querystring, so I am doing
an override of queryset in my ModelAdmin like so:
def queryset(self, request):
id = request.GET.get('id', None)
if id:
return B
2 matches
Mail list logo