Old pull request - https://github.com/django/django/pull/4002
We discussed here that is a good idea to have this feature in 1.9
--
Ticket URL: <https://code.djangoproject.com/ticket/24472>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* has_patch: 0 => 1
* needs_tests: => 0
* needs_docs: => 0
Comment:
https://github.com/django/django/pull/4296
--
Ticket URL: <https://code.djangoproject.com/ticket/24472#comment:1>
Comment (by timgraham):
I didn't understand the need to add this. Probably some tests are needed
to show the use cases.
--
Ticket URL: <https://code.djangoproject.com/ticket/24472#comment:2>
Comment (by coldmind):
@timgraham, well, it was more suitable for 1.7.x, where we had many places
with internal type checks.
At a quick glance in master I found this
https://github.com/django/django/blob/a52cd407b86a51e1badf6771e590361e24fd7155/django/db/backends/mysql/schema.py#L61
There may be also places, where are similar checks.
The main goal to give ability for users to not set internal types manually
if they need to override one of related fields and give some minor
changes.
--
Ticket URL: <https://code.djangoproject.com/ticket/24472#comment:3>
* needs_tests: 0 => 1
* stage: Unreviewed => Accepted
Comment:
I guess this is consistent with the other built-in fields. Could you add
regression tests?
--
Ticket URL: <https://code.djangoproject.com/ticket/24472#comment:4>
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/24472#comment:5>
* owner: Andriy Sokolovskiy => (none)
* status: assigned => new
--
Ticket URL: <https://code.djangoproject.com/ticket/24472#comment:6>
* owner: (none) => Akash Kumar Sen
* status: new => assigned
* needs_tests: 1 => 0
Comment:
[https://github.com/django/django/pull/16960 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/24472#comment:7>
* status: assigned => closed
* resolution: => wontfix
* stage: Accepted => Unreviewed
Comment:
I don't see a real use case for adding this. Moreover, others do not seem
too convinced either and it can cause issue for custom subclasses of
related fields. As far as I'm aware, it's not worth changing this long-
standing behavior and potential hiccups.
--
Ticket URL: <https://code.djangoproject.com/ticket/24472#comment:8>