Django support added to BuiltWith!

2010-12-17 Thread Yo-Yo Ma
I recently worked with BuiltWith to provide a list of methods for detecting whether a site was using Django, and their team implemented them. You can now check stats for Django usage at http://trends.builtwith.com/framework/Django (sparse for now), and if you get the Firefox plug-in, you can check

Re: ForeignKey with null=True

2010-12-17 Thread Tobias McNulty
On Dec 16, 2010 7:20 PM, "Christophe Pettus" wrote: > > > On Dec 16, 2010, at 2:31 PM, Luke Plant wrote: > > That being so, there is a case for arguing that > > ForeignRelatedObjectsDescriptor should not retrieve objects where the > > field pointed to is NULL - for consistency with the inverse ope

Re: ForeignKey with null=True

2010-12-17 Thread Carl Meyer
On Dec 17, 9:21 am, Carl Meyer wrote: > Instance._state.adding is new in 1.2 (in 1.2 it was instance._adding > and only ever monkeypatched onto a model instance by ModelForm; I > changed it to instance._state.adding and encapsulated it inside the > ORM just a few weeks ago in r14612). Oh - and

Re: ForeignKey with null=True

2010-12-17 Thread Carl Meyer
Hi Luke, On Dec 16, 9:47 am, Luke Plant wrote: > For the latter, I think we should use instance._state.adding to reliably > detect whether a PK has been set or not. This could cause some [snip] > While I was there,  I fixed _get_next_or_previous_by_FIELD to use > self._state.adding, rather than