Re: Using create_object generic view excluding

2009-08-09 Thread Darek
On Aug 9, 7:54 pm, Lacrima wrote: > Hello! > > I want to use django.views.generic.create_update.create_object to > create and save object. > But I need one field to be excluded from the form displayed. > I can do it by setting exclude = ('somefield',) in the Meta class of > my ModelForm subclass.

Re: Using create_object generic view excluding

2009-08-09 Thread Darek
Add to "quiz" field in Question model keyword blank=True (for varchar type or "blank=True, null=True" for foreign key or datetime) On Aug 9, 7:54 pm, Lacrima wrote: > Hello! > > I want to use django.views.generic.create_update.create_object to > create and save object. > But I need one field to

Re: Using create_object generic view excluding

2009-08-09 Thread Lacrima
Sorry, I have missed some words in the topic name, but I can't change it now. ( On Aug 9, 8:54 pm, Lacrima wrote: > Hello! > > I want to use django.views.generic.create_update.create_object to > create and save object. > But I need one field to be excluded from the form displayed. > I can do it