Opened 10 years ago

Closed 10 years ago

#22467 closed Cleanup/optimization (fixed)

Example in post_migrate signal is misleading

Reported by: Vidir Valberg Gudmundsson Owned by: nobody
Component: Documentation Version: 1.7-beta-1
Severity: Normal Keywords: signals migration
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I was reading up on documentation on the post_migrate signal:

https://docs.djangoproject.com/en/1.7/ref/signals/#post-migrate

And seems to me that the example is just a copy paste of the post_syncdb one.

I recieve an "AssertionError: Signal receivers must be callable" error when just passing in my models module.

Github reference:
https://github.com/django/django/blob/stable/1.7.x/docs/ref/signals.txt#L497

Change History (2)

comment:1 by Vidir Valberg Gudmundsson, 10 years ago

Hmm, okay. Seems I just misread and thought of "Signal receivers" as the sender. Was calling my receiver in the connect() call.

But still, a models module isn't the same as a AppConfig is it?

comment:2 by Vidir Valberg Gudmundsson, 10 years ago

Resolution: fixed
Status: newclosed

Okay totally disregard this ticket, it was just a brainfart :)

Note: See TracTickets for help on using tickets.
Back to Top