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

2021-07-12 Thread opqpop
Hi, I'd like to pass additional partition columns into the filters for a QuerySet's bulk_update(). These would be no-op filters solely for the DB to understand from the query to lock rows in a single partition vs all partitions. Ex: I'd add "orig_city_id = 52" into this pk filter that bulk_upd

Re: include_block template tag

2021-07-12 Thread Pierre Vanliefland
Hi Kye! I've been using this code for a few months now, without encountering any serious problem so far: https://gist.github.com/pvanliefland/bb676a906b900c7e29e46b474038a6ca I would say that the main issue with this approach is readability. Once you reach 3 or 4 levels of embeds, between in

Re: `Model.validate_unique` excluding partial unique constraint

2021-07-12 Thread Gaga Ro
Pull request created: https://github.com/django/django/pull/14625 Le lundi 12 juillet 2021 à 02:31:02 UTC+2, charettes a écrit : > Awesome, thanks for your continued efforts on this! > > Le samedi 10 juillet 2021 à 14:41:05 UTC-4, gaga...@gmail.com a écrit : > >> No problem. The lookup PR has bee

Fellow Reports - July 2021

2021-07-12 Thread Mariusz Felisiak
Week ending July 11, 2021 *Triaged:*     https://code.djangoproject.com/ticket/32661 - An exception should be raised when trying to save datetime/time object and the UTC offset isn't known. (invalid)     https://code.djangoproject.com/ticket/32899 - enhance JSONResponse safe=True kwarg docs (a