Re: Extending the method that is called the first time a model is deployed.

2008-06-22 Thread James Bennett
On Sun, Jun 22, 2008 at 4:41 AM, mwebs <[EMAIL PROTECTED]> wrote: > It seems as if these signals have to be used in management.py, but > what I need is something I can use directly in my model code. > Something like overloading a method. The fact that this should be > happen in the model-class is

Re: Extending the method that is called the first time a model is deployed.

2008-06-22 Thread mwebs
Hi, It seems as if these signals have to be used in management.py, but what I need is something I can use directly in my model code. Something like overloading a method. The fact that this should be happen in the model-class is very important. E.g I dont want every model to be registerd in my

Re: Extending the method that is called the first time a model is deployed.

2008-06-21 Thread Alex Koshelev
try `class_prepared` or `post_syncdb` signals On Jun 21, 3:43 pm, mwebs <[EMAIL PROTECTED]> wrote: > I want to register a specific model(not an object of the model, the > model itself) in another model. > This should be done the first time the model is deployed with syncdb. > > So what I need is

Extending the method that is called the first time a model is deployed.

2008-06-21 Thread mwebs
I want to register a specific model(not an object of the model, the model itself) in another model. This should be done the first time the model is deployed with syncdb. So what I need is the function that is called the first time a model is deployed, so that I can extend this function and