#25477: Modelbase.__new__ causes `AppRegistryNotReady`
------------------------------+------------------------------------
Reporter: cdestigter | Owner: nobody
Type: Bug | Status: new
Component: Core (Other) | Version: 1.9a1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+------------------------------------
Changes (by aaugustin):
* severity: Release blocker => Normal
* stage: Unreviewed => Accepted
Comment:
From https://docs.djangoproject.com/en/1.7/internals/deprecation
/#deprecation-removed-in-1-9:
> Furthermore, it won’t be possible to import them before their
application is loaded. In particular, it won’t be possible to import
models inside the root package of their application.
That said, you have a point, this particular piece of information isn't
duplicated in the release notes, most likely because I didn't expect
anyone to do that.
Furthermore your code crashes just before the point where a warning should
have been raised previously. At first I expected
https://github.com/django/django/commit/1b8af4cfa023161924a45fb572399d2f3071bf5b
to cause the exception but in fact it occurs before the code changed in
this commit.
I must have messed up the backwards-compatibility checks at some point. If
you can bisect the commit that introduced this failure it would be very
helpful.
I'm downgrading severity because the only problem here is that lack of a
proper deprecation path.
--
Ticket URL: <https://code.djangoproject.com/ticket/25477#comment:3>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/068.714bcb9a30a9563cc39a4e7e1544d62e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.