I have multiple urls whose mission is almost identical (generate a list page with the corresponding context). So my urlpatterns is something like:
url('^by-country/(?<arg1>\w+)', MyO.as_view(), name='by-country'),
url('^by-period/(?<arg1>\w+)', MyO.as_view(), name='by-period'),
url('^by-age/(?<arg1>\w+)', MyO.as_view(), name='by-age')
Is there a way to pass the by-blabla string in a one class based view without making it as a second regex named argument in my urlpatterns?
Since I use a View derived class (i.e. MyO), I cannot pass anything to it except already-declared attributes (e.g template_name). So, is there any clean way to do it?