Opened 7 years ago

Closed 7 years ago

Last modified 2 years ago

#24763 closed Bug (fixed)

Docs incorrectly state that DoesNotExist is in django.core.exceptions

Reported by: Sylvain Fankhauser Owned by: nobody
Component: Documentation Version: 1.8
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

The docs are unclear about the DoesNotExist exception, which is only available as an attribute of model classes. Only ObjectDoesNotExist is in django.core.exceptions.

https://docs.djangoproject.com/en/1.8/ref/exceptions/#django.core.exceptions.DoesNotExist

Change History (8)

comment:1 Changed 7 years ago by Baptiste Mispelon

Easy pickings: set
Triage Stage: UnreviewedAccepted

Hi,

I agree, we can probably improve on that.

Thanks.

comment:2 Changed 7 years ago by David Krisch

I've attempted a fix for this and submitted a pull request: https://github.com/django/django/pull/4624
This is my first attempt working with the docs, please be gentle. :-)

comment:3 Changed 7 years ago by Tim Graham

Has patch: set

comment:4 Changed 7 years ago by Tim Graham <timograham@…>

Resolution: fixed
Status: newclosed

In 1a62f19:

Fixed #24763 -- Moved DoesNotExist exception to model docs.

comment:5 Changed 7 years ago by Tim Graham <timograham@…>

In 51ebc88:

[1.8.x] Fixed #24763 -- Moved DoesNotExist exception to model docs.

Backport of 1a62f197078eae72eba85f23aabacc06ad4c7d79 from master

comment:6 Changed 2 years ago by Mariusz Felisiak <felisiak.mariusz@…>

In b5f0efa1:

Refs #24763 -- Moved DoesNotExist to Model class docs.

comment:7 Changed 2 years ago by Mariusz Felisiak <felisiak.mariusz@…>

In 77abe988:

[3.1.x] Refs #24763 -- Moved DoesNotExist to Model class docs.

Backport of b5f0efa19c82d274082bcde8a8acae5038667614 from master

comment:8 Changed 2 years ago by Mariusz Felisiak <felisiak.mariusz@…>

In f026d761:

[3.0.x] Refs #24763 -- Moved DoesNotExist to Model class docs.

Backport of b5f0efa19c82d274082bcde8a8acae5038667614 from master

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