﻿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
22748	post_migrate documentation example is wrong	Rudolph Froger	Tim Graham	"The example in the documentation [https://docs.djangoproject.com/en/dev/ref/signals/#post-migrate] does not work, it's probably copied from the old post_syncdb docs. One needs to pass the AppConfig instance, so the example should read:


{{{
from django.db.models.signals import post_migrate
from django.apps import apps

def my_callback(sender, **kwargs):
    # Your specific logic here
    pass

post_migrate.connect(my_callback, sender=apps.get_app_config('yourapp'))
}}}
"	Bug	closed	Documentation	dev	Release blocker	fixed	app-loading		Ready for checkin	1	0	0	0	0	0
