Revert "Add http verb - PATCH"

This reverts commit ff421195
This commit is contained in:
Marko Milić 2020-05-11 13:50:34 +02:00
parent ff4211958a
commit 4b166f90bc

View File

@ -104,16 +104,6 @@ class API(object):
response = self.call('PUT', url, payload)
return self.handle_response(response)
def patch(self, urlpath, payload):
"""
Puts data on given urlpath with given payload
Convenience call which uses API_ROOT from settings
"""
url = settings.API_ROOT + urlpath
response = self.call('PATCH', url, payload)
return self.handle_response(response)
def handle_response_404(self, response, prefix):
# Stripping HTML body ...
if response.text.find('body'):