Re: admin - form instantiation add_view, change_view

2009-09-29 Thread Peter Cicman
fake this. On Sep 29, 10:12 am, Russell Keith-Magee wrote: > On Tue, Sep 29, 2009 at 3:51 PM, Peter Cicman wrote: > > > Wouldn't it be handy to add get_form_instance function to ModelAdmin? > > Currently there is function get_form, which actually returns > > Fo

admin - form instantiation add_view, change_view

2009-09-29 Thread Peter Cicman
Wouldn't it be handy to add get_form_instance function to ModelAdmin? Currently there is function get_form, which actually returns FormClass. This is then getting instantiated on several places. Sometimes its important to have possibility to add some attribute to a form / override some field choic

Model inheritance problem, inherited instances

2009-07-20 Thread Peter Cicman
Hi, first of all, this question maybe don't belongs here, i konw, but anyway i didn't found noting about it in docs, and also in the source, and 2 hours spend on it sisn't bring anything. So i had decided to ask here explanation, i have: class A(models.Model): name = models.CharFiled(, r