Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Avoid duplicate save() operation for new records #233

Merged
merged 1 commit into from
Oct 17, 2022
Merged

Avoid duplicate save() operation for new records #233

merged 1 commit into from
Oct 17, 2022

Conversation

peteeckel
Copy link
Contributor

@peteeckel peteeckel commented Oct 16, 2022

On saving a new record, avoid calling Djano's save() method twice.

Though normally not a problem at all, this breaks record creation using the API for some reason. There should also be a small performance improvement, and avoiding the double save is cleaner as well.

fixes #232

@hatsat32 hatsat32 merged commit 351cce0 into auroraresearchlab:main Oct 17, 2022
@peteeckel peteeckel deleted the fix/api-create-record-with-ptr branch November 20, 2022 12:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding record via API that would generate automatic reverse fails
2 participants