Hi Qiangning
it has something to do with how django creates it's model classes.
if you look closer at the excpetion, you might be able to add the
import statements into the framework class itself.
personally I like boring.. boring doesn't call you in the middle of
the night ;-)
regards
Ian
On
it seems the _pre_save() and _post_save() doesn't run under the model
namescope, am i right? It ignores all the imports and defs in the model
level. i have to import everything and def functions inside the method.
it's t boring.
--
Qiangning Hong
http://www.hn.org/hongqn (RSS: http://feeds
2 matches
Mail list logo