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.
1 parent 75eee89 commit 4defc76Copy full SHA for 4defc76
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)
+ 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