i 在我的测试中加入这一法典。 py:
from models import *
和模式。 p. 我有信号手,在上面登记
post_save.connect( post_save_note, sender=Note )
以及当使用<代码>的测试时。
I found the signal handler was registered twice and executed twice, and I found it s because the models was imported twice.
can t i put from models import *
in the test code?
what should i do?