toastdriven/django-tastypie — Issue #334: Selecting A Subset Of Resources
Author: dbtsai
Created: 2012-01-18 05:34:15+00:00
State: open

As suggested in http://django-tastypie.readthedocs.org/en/latest/cookbook.html#pre-request-alterations-to-the-queryset

I rewrite the url such that I can use uuid as part of request key, however, I found that I'll break the "Selecting A Subset Of Resources"

def override_urls(self):
return [
url(r"^(?P%s)/(?P[\w\d_.-]+)/$" % self._meta.resource_name, self.wrap_view('dispatch_detail'), name="api_dispatch_detail"),
]

Is there anyway to fix it?