Opened 16 months ago

Last modified 16 months ago

#34715 closed New feature

have proposal to create new orm method get_object_or_none same as get_object_or_404 — at Initial Version

Reported by: Mahavir Agrawal Owned by: nobody
Component: Database layer (models, ORM) Version: 4.2
Severity: Normal Keywords: django orm
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

want to contribute new method get_object_or_none
As django developer many developers are facing this issue some time they want object and they also want if object doesn't exist tin that case default they will get None object
because puting every time try except for this is very irritating so i want to propose this function

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top