Opened 9 years ago

Closed 9 years ago

Last modified 4 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 by Baptiste Mispelon, 9 years ago

Easy pickings: set
Triage Stage: UnreviewedAccepted

Hi,

I agree, we can probably improve on that.

Thanks.

comment:2 by David Krisch, 9 years ago

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 by Tim Graham, 9 years ago

Has patch: set

comment:4 by Tim Graham <timograham@…>, 9 years ago

Resolution: fixed
Status: newclosed

In 1a62f19:

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

comment:5 by Tim Graham <timograham@…>, 9 years ago

In 51ebc88:

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

Backport of 1a62f197078eae72eba85f23aabacc06ad4c7d79 from master

comment:6 by Mariusz Felisiak <felisiak.mariusz@…>, 4 years ago

In b5f0efa1:

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

comment:7 by Mariusz Felisiak <felisiak.mariusz@…>, 4 years ago

In 77abe988:

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

Backport of b5f0efa19c82d274082bcde8a8acae5038667614 from master

comment:8 by Mariusz Felisiak <felisiak.mariusz@…>, 4 years ago

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