Please clarify what objects are accepted by get_object_or_404
|Reported by:||zgoda||Owned by:||nobody|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The description for get_object_or_404 does not state what types of objects are allowed to be queried. Some of these types are described later in function interface description, but the description is incomplete (does not specify which manager is used to retireve object).
Attached patch to documentation adds the above specification to function description.
Change History (3)
Changed 6 years ago by zgoda
comment:1 Changed 6 years ago by SmileyChris
- Has patch set
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Ready for checkin