#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 , 11 years ago
| Easy pickings: | set |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
comment:2 by , 11 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 , 11 years ago
| Has patch: | set |
|---|
Note:
See TracTickets
for help on using tickets.
Hi,
I agree, we can probably improve on that.
Thanks.