Test update status via inbox

This commit is contained in:
Mouse Reeve
2021-10-15 08:51:59 -07:00
parent 4002df04fc
commit 20cca69f06
2 changed files with 39 additions and 24 deletions

View File

@ -69,8 +69,9 @@ class Update(Verb):
def action(self):
"""update a model instance from the dataclass"""
if self.object:
self.object.to_model(allow_create=False)
if not self.object:
return
self.object.to_model(allow_create=False)
@dataclass(init=False)