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 10/18/05, Qiangning Hong <[EMAIL PROTECTED]> wrote: > > 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 toooo boring. > > -- > Qiangning Hong > http://www.hn.org/hongqn (RSS: http://feeds.feedburner.com/hongqn) > > Registered Linux User #396996 > Get Firefox! <http://www.spreadfirefox.com/?q=affiliates&id=67907&t=1> > Thunderbird! <http://www.spreadfirefox.com/?q=affiliates&id=67907&t=183> > -- [EMAIL PROTECTED] -- ++61-3-9877-0909 If everything seems under control, you're not going fast enough. - Mario Andretti