def save(self, commit=True): # To attache, instance must has ``pk`` so commit anyway. instance = super(AttachmentableMixin, self).save(commit=True) # bind attachments to the instance bind_attachments(self, instance) return instance
def save(self, commit=True): # force saving instance = original_save_method(self, commit=True) # bind attachments to the instance bind_attachments(self, instance) return instance