cards: do not update reverse relations of drafts (#88725)
This commit is contained in:
parent
6e53e339cd
commit
64a8dbdfc5
|
@ -122,6 +122,8 @@ class CardData(FormData):
|
|||
return '/api/card-file-by-token/%s' % token.id
|
||||
|
||||
def update_related(self):
|
||||
if self.is_draft():
|
||||
return
|
||||
if self.formdef.reverse_relations:
|
||||
job = UpdateRelationsAfterJob(carddata=self)
|
||||
if get_response():
|
||||
|
|
Loading…
Reference in New Issue