Pull request: https://github.com/django/django/pull/2263
--
Ticket URL: <https://code.djangoproject.com/ticket/22015>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* stage: Unreviewed => Accepted
* needs_tests: => 1
* needs_docs: => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/22015#comment:1>
Comment (by timo):
As noted on the PR, admindocs is severely lacking in tests and
bootstrapping them enough to be able to write a test for this change is
more work than the reporter wants to do. If anyone else is interested in
this patch, the first step will be to do that.
--
Ticket URL: <https://code.djangoproject.com/ticket/22015#comment:2>
Comment (by claudep):
Note that there are also tests in `tests/admin_docs`, notably
`admin_docs.tests.AdminDocViewTests.test_model_detail`. We'd need a new
`models.py`, though.
--
Ticket URL: <https://code.djangoproject.com/ticket/22015#comment:3>
* owner: nobody => gregchapple
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/22015#comment:4>
* keywords: => nlsprint14
--
Ticket URL: <https://code.djangoproject.com/ticket/22015#comment:5>
Comment (by gregchapple):
Added tests which cover `django.contrib.admindocs.views.ModelDetailView`
which was seriously lacking in test coverage. This is part of ticket
#22015, though the original issue for which the ticket was opened, seems
to be already working as expected, with and without this patch. Though
this patch does contain a test which covers the issue raised in the
ticket, and should catch it in the future should it re-arise.
Pull request: https://github.com/django/django/pull/2364
I will do some further investigation into the original issue, and update
again with my findings.
--
Ticket URL: <https://code.djangoproject.com/ticket/22015#comment:6>
Comment (by Baptiste Mispelon <bmispelon@…>):
In [changeset:"b1d10205ce0c4bb355e20bed6258b5264ed06cc5"]:
{{{
#!CommitTicketReference repository=""
revision="b1d10205ce0c4bb355e20bed6258b5264ed06cc5"
Added tests for django.contrib.admindocs
Refs #22015
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/22015#comment:7>
* status: assigned => closed
* resolution: => worksforme
Comment:
As mentionned by gregchapple, this appears to have already been fixed so
I'll close this ticket as `worksforme`.
Please reopen if you can provided steps that reproduce your issue.
Thanks.
--
Ticket URL: <https://code.djangoproject.com/ticket/22015#comment:8>