We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0ea4a61 + 5f86bd0 commit 4bed487Copy full SHA for 4bed487
README.md
@@ -104,15 +104,14 @@ class Device(DSyncModel):
104
@classmethod
105
def create(cls, dsync, ids, attrs):
106
## TODO add your own logic here to create the device on the remote system
107
- return cls(**ids, **attrs)
+ return super().create(ids=ids, dsync=dsync, attrs=attrs)
108
109
def update(self, attrs):
110
## TODO add your own logic here to update the device on the remote system
111
- for attr, value in attrs.items():
112
- setattr(self, attr, value)
113
- return self
+ return super().update(attrs)
114
115
def delete(self):
116
## TODO add your own logic here to delete the device on the remote system
+ super().delete()
117
return self
118
```
0 commit comments