Re: Form field deletion

2007-09-07 Thread Mark Green
On Fri, Sep 07, 2007 at 03:24:46PM -0500, jake elliott wrote: > > Oleg Korsak wrote: > >> Sure - use the 'fields' option to specify the subset of model fields > >> you want to use on the form. > >> > > form_for_instance() got an unexpected keyword argument 'fields' > > > > this argument to fo

Re: Form field deletion

2007-09-07 Thread jake elliott
Oleg Korsak wrote: >> Sure - use the 'fields' option to specify the subset of model fields >> you want to use on the form. >> > form_for_instance() got an unexpected keyword argument 'fields' > this argument to form_for_instance() and form_for_model() is only available in the SVN version of dj

Re: Form field deletion

2007-09-07 Thread Oleg Korsak
Russell Keith-Magee пишет: > On 9/7/07, Oleg Korsak <[EMAIL PROTECTED]> wrote: > >> I just want to create form_for_model and/or form_for_instance and then >> delete one field (user). Is it possible or do I need to manually create my >> own form? > > Sure - use the 'fields' option to specify th

Re: Form field deletion

2007-09-06 Thread Russell Keith-Magee
On 9/7/07, Oleg Korsak <[EMAIL PROTECTED]> wrote: > I just want to create form_for_model and/or form_for_instance and then > delete one field (user). Is it possible or do I need to manually create my > own form? Sure - use the 'fields' option to specify the subset of model fields you want to us

Form field deletion

2007-09-06 Thread Oleg Korsak
Hello. I have such model class: from django.db import models from django.utils.translation import gettext_lazy as _ from django.contrib.auth.models import User class Profile(models.Model): regnum = models.CharField(_('registration number'), maxlength=32) pvnnum = models.CharField(_(