Add note to documentation of how to relate to ProcrastinateJob model from another Django model #1138
Labels
Issue appropriate for: newcomers 🤩
This issue can be safely tackled by people who never worked in this project before
Issue contains: Some documentation 📚
This issues involves writing some documentation
PR type: documentation 📚
Contains documentation updates
When creating a relation from another Django model to the
ProcrastinateJob
model like thisI get an error when jobs are deleted from the database (e.g., by
app.run_worker(delete_jobs="always")
). This is because Django sets theon_delete
trigger only at the application level but not at the database level.I solved it by altering my table itself with some custom migration. I even created a function for that
I think we should add a note to the documentation (for example, in the FAQ).
The text was updated successfully, but these errors were encountered: