#3055: GenericRelation should squawk if pointed to a model that doesn't have a
GenericForeignKey on it
-------------------------------------+-------------------------------------
Reporter: panta@… | Owner: marcosmoyano
Type: defect | Status: closed
Milestone: | Component: Database layer
Version: SVN | (models, ORM)
Resolution: fixed | Severity: major
Triage Stage: Ready for | Keywords:
checkin | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Comment (by ramiro):
In [16493]:
{{{
#!CommitTicketReference repository="" revision="16493"
Reverted [14563] because it introduced a dependency from core on a contrib
app (contenttypes). Fixes #16283, Refs #3055. Thanks TheRoSS for the
report and Aymeric Augustin for finding the problem.
This caused models shipped with some contrib apps to pollute the namespace
when user's apps had the same name (e.g. auth, sites), even when these
contrib apps weren't installed.
This undesired loading of contrib apps happened when model validation was
executed, for example when running management commands that set or inherit
`requires_model_validation=True`:
cleanup, dumpdata, flush, loaddata, reset, runfcgi, sql, sqlall, sqlclear,
sqlcustom, sqlflush, sqlindexes, sqlinitialdata, sqlreset,
sqlsequencereset, syncdb, createsuperusers, ping_google, collectstatic,
findstatic.
This could also cause hard to diagnose problems e.g. when performing
reverse URL resolving.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/3055#comment:10>
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 this group at
http://groups.google.com/group/django-updates?hl=en.