#18975: Remove explicit support for bad practices
----------------------------------------------+--------------------
Reporter: FunkyBob | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Database layer (models, ORM) | Version: 1.4
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Easy pickings: 0 | UI/UX: 0
----------------------------------------------+--------------------
In django/db/models/loading.py in AppCache.register_models the comments
say:
# The same model may be imported via different paths (e.g.
# appname.models and project.appname.models). We use the
source
# filename as a means to detect identity.
Overlapping import paths lead to many unobvious errors -- especially with
signals. Explicitly covering for people persisting in this poor
behaviour, which the new project layout was supposed to help avoid, is not
doing anyone any favours.
--
Ticket URL: <https://code.djangoproject.com/ticket/18975>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.