--
Ticket URL: <https://code.djangoproject.com/ticket/18620>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_docs: => 0
* needs_tests: => 0
* stage: Unreviewed => Accepted
Comment:
This makes sense and is backwards compatible.
--
Ticket URL: <https://code.djangoproject.com/ticket/18620#comment:1>
* has_patch: 0 => 1
Comment:
Fork: https://github.com/mtigas/django/tree/patches/ticket-18620
Pull request: https://github.com/django/django/pull/203
Test isn't the best but does fail without the views.py patch.
--
Ticket URL: <https://code.djangoproject.com/ticket/18620#comment:2>
Comment (by mtigas):
Also I'm on the fence as to whether or not it should optimize and not
query for `current_site` until absolutely necessary (i.e. use `lazy` or
use some if-blocks). Basically to avoid one unnecessary query in the
situation if we have a site FK.
--
Ticket URL: <https://code.djangoproject.com/ticket/18620#comment:3>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/18620#comment:4>
* owner: nobody => Paulo
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/18620#comment:5>
* needs_better_patch: 1 => 0
Comment:
PR: https://github.com/django/django/pull/9120
--
Ticket URL: <https://code.djangoproject.com/ticket/18620#comment:6>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/18620#comment:7>
* needs_better_patch: 0 => 1
* stage: Ready for checkin => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/18620#comment:8>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/18620#comment:9>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/18620#comment:10>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"d14850e525ccf95d42b8e9f11571dc5d18b15f03" d14850e]:
{{{
#!CommitTicketReference repository=""
revision="d14850e525ccf95d42b8e9f11571dc5d18b15f03"
Fixed #18620 -- Made ContentTypes shortcut view prefer current site if
available.
Thanks Mike Tigas (mtigas) for the initial patch.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/18620#comment:11>
Comment (by Tim Graham <timograham@…>):
In [changeset:"fa679db1ff72667749757d62324a2797cb4a2cc4" fa679db1]:
{{{
#!CommitTicketReference repository=""
revision="fa679db1ff72667749757d62324a2797cb4a2cc4"
Refs #18620 -- Refactored ContentTypes view tests to group related field
test cases.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/18620#comment:12>