Re: Feature Request: Allow passing no-op filters to QuerySet's bulk_update() when updating tables with partitions

2021-07-25 Thread opqpop
Wow thanks so much Adam. I just verified that doing the filter before bulk_update indeed works. I didn't realize I could just filter it before doing the bulk_update and it would carry over with the pk filter that gets added in bulk_update. I will have to brush up on understanding Querysets bet

Guardrails around lack of model validation on blank=True fields

2021-07-25 Thread Jacob Walls
Hi group, We have several accepted tickets regarding developer headaches when a blank=True field, which skips model validation by design[1], contains inappropriate empty values (e.g. None for a not-nullable field or the empty string where empty strings aren't allowed). I want to see what the