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 the function that is called the first time a model
> is deployed, so that I can extend this function and register the model
> in my App-Model:
> pseudoCode:
>
> class Category(models.Model)
>      .....
>      def __deploy__():
>           super(self, Category).__deploy__()
>           app = App(object_name = self.__class__.name)
>           app.save()
>
> Has anyone an idea which method is used for deploying a model?
>
> Thank you, Toni
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to