Skip to content
Snippets Groups Projects
Commit 28f0dd27 authored by Rocky Duan's avatar Rocky Duan
Browse files

make delete actually working again

parent 60b2423c
No related branches found
Tags release-2021-05-07-10.28
No related merge requests found
......@@ -88,6 +88,12 @@ class Model(object):
self.retrieved = True
self.update_attributes(**response)
def delete(self):
url = self.url(action='delete', params=self.attributes)
response = perform_request('delete', url)
self.retrieved = True
self.update_attributes(**response)
@classmethod
def url_with_id(cls, params={}):
return cls.base_url + '/' + str(params['id'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment