There is no way to do it in urls.py. But you may write wrapper view
that will filter queryset and then pass it to generic view.
On 9 янв, 01:19, "Shishir Ramam" <[EMAIL PROTECTED]> wrote:
> I'd like to pass a parameter from a url to a query set of a generic view.
>
> Something like the following.
I'd like to pass a parameter from a url to a query set of a generic view.
Something like the following. I'm not sure if this is possible, but would
appreciate any tips
on how this can be accomplished.
thanks,
-shishir
my_info_dict = {
'queryset': my_model.objects.filter(field_name=field_value
2 matches
Mail list logo