I have an existing Django model which may or may not contain the results from a python calculation.
How do I test for and add multiple rows if it does not exist?
The docs explain very nicely how to do one entry. Additionally there are various solutions for how to insert multiple rows.
I specifically need to (i) add bulk (ii) if it does not already exist.
If loops are the only way, then so be it.