Hello . I want to make filter by url parameter as like section=<section> instead of static value section='Politics' . Here is my url patterns :
urlpatterns = [url(r'^(?P<section>\w+)$',
ListView.as_view(queryset=New.objects.filter(section='Politics').order_by("date")[:25],
template_name="news/news.html"))]
How can adjust it ?
[edit by admin: formatting]