Re: non-concurrent QuerySet.get_or_create() on Postgresql

2017-10-12 Thread Ran Benita
Have you drilled down to `self._create_object_from_params(params)`? It does handle this case, as follows: try: with transaction.atomic(using=self.db): params = {k: v() if callable(v) else v for k, v in params.items()} obj = self.create(**params) return obj, True except Inte

Re: Status of "Replacing get_absolute_url()"

2017-10-12 Thread Tim Graham
I added, "This work is abandoned as of 2008. Feel free to continue it if you're intersted in contributing. The Trac ticket is #8264 . " On Thursday, October 12, 2017 at 3:50:36 AM UTC-4, guettli wrote: > > I think this page is outdated: > > https://c

Status of "Replacing get_absolute_url()"

2017-10-12 Thread guettli
I think this page is outdated: https://code.djangoproject.com/wiki/ReplacingGetAbsoluteUrl At the top: > This page is a work in progress - I'm still figuring out the extent of the problem before I start working out a solution. No changes since 8 years. Can someone please update the page?