The Python Oracle

.filter() vs .get() for single object? (Django)

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Track title: CC C Schuberts Piano Sonata No 13 D

--

Chapters
00:00 Question
00:55 Accepted answer (Score 203)
01:30 Answer 2 (Score 31)
01:47 Answer 3 (Score 18)
02:15 Answer 4 (Score 15)
02:57 Thank you

--

Full question
https://stackoverflow.com/questions/1018...

Accepted answer links:
[get()]: https://docs.djangoproject.com/en/stable...
[specifically for this case]: https://docs.djangoproject.com/en/stable...

Answer 2 links:
[django-annoying]: http://bitbucket.org/offline/django-anno.../

Answer 3 links:
[this]: http://paltman.com/2008/jan/18/try-excep.../

Answer 4 links:
https://docs.djangoproject.com/en/dev/re...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #django #djangomodels #backend #djangoqueryset

#avk47