
Untitled
By: a guest on
Aug 3rd, 2012 | syntax:
None | size: 0.63 KB | hits: 18 | expires: Never
class Update(Resource):
def override_urls(self):
urls = [url(r"^(?P<resource_name>%s)%s$" % (self._meta.resource_name, trailing_slash()),
self.wrap_view('dispatch_update'), name="api_dispatch_update")
]
return urls
def dispatch_update(self, request, **kwargs):
return self.dispatch('update', request, **kwargs)
def get_update(self, request, **kwargs):
updateStatus = {}
return self.create_response(request, updateStatus)
class Meta:
authentication = Authentication()
authorization = Authorization()
update_allowed_methods = ['get']