Changes between Version 1 and Version 2 of Ticket #34715
- Timestamp:
- Jul 16, 2023, 3:25:33 AM (16 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34715 – Description
v1 v2 1 I want to contribute new method get_object_or_none 2 this method will be return object if object exist other wise this method will return None 1 I would like to propose a new method called get_object_or_none, which would return an object if it exists, and None otherwise. This functionality is often desired by developers, as it eliminates the need to use try-except blocks and simplifies the code where developer wants object if exist otherwise None.