On Wed, Feb 27, 2013 at 3:34 PM, Wim Feijen <w...@go2people.nl> wrote: > Which style do you prefer? > > .filter(last_name__startswith='b').order_by('last_name').first() # clear > and long > .first(last_name__startswith='b').order_by('last_name') # first method > has filter syntax. > .filter(last_name__startswith='b').first('last_name') # first method has > order_by syntax.
+1 for the first syntax. The others are duplicating functionality that is already present via more aptly named methods. The first syntax is also more consistent with other ORMs. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at http://groups.google.com/group/django-developers?hl=en. For more options, visit https://groups.google.com/groups/opt_out.