﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
19212	app_cache_ready signal	Craig de Stigter	nobody	"[https://groups.google.com/d/topic/django-users/OziphrWlcYo/discussion This thread] on django-users proposed the concept of a signal for when all apps are loaded. We've also come across a use case that requires this.

Basically class_prepared is fired during loading of the app cache. So during handling of class_prepared, ForeignKey.rel.to may not yet be resolved, and that limits what we can do.

So we wrote a 3-line patch which adds a signal that gets fired when the app cache finishes loading.

Because this can't be done outside of core without monkey-patching, I'd say it belongs in core.

Here's another request for this on SO: http://stackoverflow.com/questions/1333019/django-audittrail-lazy-relations


Our 3 line patch: [https://github.com/koordinates/django/commit/cfa687409698ab9c5ffd150d0c89aba7d361739f]"	New feature	closed	Database layer (models, ORM)	1.5-alpha-1	Normal	duplicate		flavio.curella@…	Unreviewed	0	0	0	0	0	0
