On 7/22/05, Jacob Kaplan-Moss <ja...
> Let "mod.get_object(pk=something)" be the same as "mod.get_object
> (id__exact=something)" -- where "id" would obviously get replaced by
> the actual name of the primary key (should it be different).
> What about it?
Since I came up with the idea, I'm obviously +1. :-)
Seriously, though, this would solve most of the annoyance I feel at
having to type "id__exact" all the time. Plus it has the added bonus
of being much shorter to type if your primary key is named
CustomerSocialSecurityNumber. :-) It doesn't solve every case where a
shorthand for "field__exact" might be desired, but most often when
you're looking up on a non-pk field, you're expecting multiple
results, so you probably *want* that explicit __exact in there.
GPG key 0xD6497014