Check if obj exists for updates

This commit is contained in:
Mouse Reeve 2021-04-16 15:17:55 -07:00
parent caa261f4bf
commit bd294cce83
1 changed files with 3 additions and 1 deletions

View File

@ -58,6 +58,8 @@ class Update(Verb):
def action(self): def action(self):
""" update a model instance from the dataclass """ """ update a model instance from the dataclass """
obj = self.object
if obj:
self.object.to_model(allow_create=False) self.object.to_model(allow_create=False)