[Django] #22467: Example in post_migrate signal is misleading

9 views
Skip to first unread message

Django

unread,
Apr 17, 2014, 7:42:11 AM4/17/14
to django-...@googlegroups.com
#22467: Example in post_migrate signal is misleading
--------------------------------------+-------------------------------
Reporter: valberg | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 1.7-beta-1
Severity: Normal | Keywords: signals migration
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+-------------------------------
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

--
Ticket URL: <https://code.djangoproject.com/ticket/22467>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Apr 17, 2014, 7:52:29 AM4/17/14
to django-...@googlegroups.com
#22467: Example in post_migrate signal is misleading
-------------------------------------+-------------------------------------
Reporter: valberg | Owner: nobody
Type: | Status: new
Cleanup/optimization | Version:
Component: Documentation | 1.7-beta-1
Severity: Normal | Resolution:

Keywords: signals migration | Triage Stage:
Has patch: 0 | Unreviewed
Needs tests: 0 | Needs documentation: 0
Easy pickings: 0 | Patch needs improvement: 0
| UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by valberg):

* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0


Comment:

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?

--
Ticket URL: <https://code.djangoproject.com/ticket/22467#comment:1>

Django

unread,
Apr 17, 2014, 7:56:20 AM4/17/14
to django-...@googlegroups.com
#22467: Example in post_migrate signal is misleading
-------------------------------------+-------------------------------------
Reporter: valberg | Owner: nobody
Type: | Status: closed

Cleanup/optimization | Version:
Component: Documentation | 1.7-beta-1
Severity: Normal | Resolution: fixed

Keywords: signals migration | Triage Stage:
Has patch: 0 | Unreviewed
Needs tests: 0 | Needs documentation: 0
Easy pickings: 0 | Patch needs improvement: 0
| UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by valberg):

* status: new => closed
* resolution: => fixed


Comment:

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

--
Ticket URL: <https://code.djangoproject.com/ticket/22467#comment:2>

Reply all
Reply to author
Forward
0 new messages