Re: Execute command when creating object with admin interface

2008-04-09 Thread Michael
You have 2 options to accomplish this. Inside your models you can hijack your save function. Here are some docs on that: http://www.djangoproject.com/documentation/model-api/#overriding-default-model-methods or there are signals that you can use too. Those are a little bit more under the hood but

Execute command when creating object with admin interface

2008-04-09 Thread Jan Giesecke
Hello, is it possible to tell the built-in admin interface to execute a command when I create a new instance of a certain model? As part of my AI studies I have written a neural network for character recognition and now I want to use Django as a kind of frontend. So when I create a new neural