Re: bulk_update() support for unique fields instead of only primary key

2022-06-06 Thread Jörg Breitbart
Imho the pk field being treated special by bulk_update (as the only record filter predicate, non updatable) comes from one simple idea - stable object identity during the updates. For an ORM proper object identification is rather important to not mix things up, shifting identities might create

bulk_update() support for unique fields instead of only primary key

2022-06-06 Thread Ebram Shehata
I've already created a ticket that ended up with 'WONTFIX' here . Please read it first. The scenario that led me trying to add that feature: Well, I'v a model that has a primary key and unique field... Every X period of time I've a cron that calls an

Re: Feature Idea: Allow setting session cookie name dynamically

2022-06-06 Thread Maciek Olko
Hi Dan and Carlton, In my current company I am impacted by conflicting session cookie name. We have several internal tools built on Django, available in the internal network under the same top-level domain. The scope of session cookies apparently was set on more than one service to a wildcard. Maj

Re: Feature Idea: Allow setting session cookie name dynamically

2022-06-06 Thread Dan Strokirk
Hi Carlton, thanks for the response. An external package might be useful, although the code majority of the code would be the copied SessionMiddleware code and the tiny changes to allow a dynamic cookie name, so my thoughts is that this might be "too small" for a published pypi package? But si