我使用的是django-filter,我想链接到带有预设过滤器的视图.
这个时候,我是这样做的:
<a href='{{ url "或der_list" }}/?year=2023'>
或
urlnext = (
reverse('或der_list') +
"?year=2023"
)
return HttpResponseRedirect(urlnext)
I would like to know if exists a m或e elegant approach. Thanks