{{{
# Maintain compatibility with existing calls.
if isinstance(field.remote_field, ManyToOneRel):
kwargs.pop(field.attname, None)
}}}
There's no test coverage for them, and they have remained untouched since
they were added in #3438 10 years ago, as an optimization rewrite of
`Model.__init__`. Afaict they aren't needed.
--
Ticket URL: <https://code.djangoproject.com/ticket/27512>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* type: Uncategorized => Cleanup/optimization
* has_patch: 0 => 1
* component: Uncategorized => Database layer (models, ORM)
Comment:
https://github.com/django/django/pull/7580
--
Ticket URL: <https://code.djangoproject.com/ticket/27512#comment:1>
* owner: nobody => Adam Chainz
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/27512#comment:2>
* cc: me@… (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/27512#comment:3>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"74742aa956d9cef0493b57f50f1cb7dc0f987fc6" 74742aa]:
{{{
#!CommitTicketReference repository=""
revision="74742aa956d9cef0493b57f50f1cb7dc0f987fc6"
Fixed #27512 -- Removed unused code in Model.__init__().
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27512#comment:4>