Skip to content

Instantly share code, notes, and snippets.

@mgrouchy
Created February 16, 2011 21:31
Show Gist options
  • Save mgrouchy/830266 to your computer and use it in GitHub Desktop.
Save mgrouchy/830266 to your computer and use it in GitHub Desktop.
def override_urls(self):
return [
url(r'^offer/(?P<offer_id>\d+)/(?P<resource_name>%s)/(?P<offer_transaction_id>\d+)/$' % self._meta.resource_name, self.wrap_view('get_offer_transaction_id'), name="api_get_offer_transaction_id"),
url(r'^offer/(?P<offer_id>\d+)/(?P<resource_name>%s)/$' % self._meta.resource_name, self.wrap_view('get_offer_transaction'), name="api_get_offer_transaction"),
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment