Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify on_delete behaviour for Instrument, AVResource, and InstrumentName models #142

Merged
merged 2 commits into from
Aug 15, 2024

Conversation

dchiller
Copy link
Contributor

  • On the Instrument model, set default_image and thumbnail to NULL if related AVResource object is deleted.
  • On the InstrumentName model, delete the InstrumentName if the related Instrument is deleted.
  • On the AVResource model, set the instrument field to NULL if the related Instrument is deleted.

Closes #140

…instrumentname models

- On the Instrument model, set default_image and thumbnail to NULL if related
AVResource object is deleted.
- On the InstrumentName model, delete the InstrumentName if the related Instrument
is deleted.
- On the AVResource model, set the instrument field to NULL if the related Instrument
is deleted.
@dchiller dchiller merged commit 29861c2 into DDMAL:develop Aug 15, 2024
2 checks passed
@dchiller dchiller deleted the i140-instrument-avresource-delete branch August 15, 2024 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Instrument and AVResource objects cannot be deleted
2 participants