Is there a different between get_first_or_none() and the already existing
first()?

If we do first, some may want get_last_*() for everything too :)

On Tue, Nov 28, 2017 at 8:31 PM, Josh Smeaton <josh.smea...@gmail.com>
wrote:

> From my experiences, all projects I've worked on have implemented
> get_first_or_none and get_first_or_404, and usually slightly differently. I
> think these shortcuts would make sense for Django. Interested to hear how
> common the usage would be from others on the list though.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" 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 https://groups.google.com/group/django-developers.
> To view this discussion on the web visit https://groups.google.com/d/ms
> gid/django-developers/fcabccc7-3da2-456f-ad92-90145b700635%
> 40googlegroups.com
> <https://groups.google.com/d/msgid/django-developers/fcabccc7-3da2-456f-ad92-90145b700635%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" 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 https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAFO84S5RjujimJHhs6aU9dRqF5jQH8An8dA-3mrY2Y37_CFEcg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to