1👍
✅
Normally you would do
url(r'^(?P<resource_name>%s)/(?P<pk>\d+)/stats%s$' % (self._meta.resource_name, trailing_slash()),
self.wrap_view('dispatch_list'),
name='api_dispatch_regions_stats')
and Django cares for the rest but I am not sure what you really want to do.
Source:stackexchange.com