Closed federicoparroni closed 2 years ago
That issue can be solved by inverting the attach logic:
class Restore(Model): # .... def createFallback(self): backup = Backup.create({ 'website_id': self.backup.website_id, 'name': 'Automatic backup before restore', }) # self.attach('fallback', backup) # changed this backup.attach('restore', self) # to this self.save()
That issue can be solved by inverting the attach logic: