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 email instead of username in extended "User" model?

2009-08-02 Thread Darek
tips&tricks: Email addresses for user name: http://www.djangosnippets.org/snippets/74/ On Aug 2, 5:38 pm, Dana wrote: > Hello All, > > I am looking to create a user model that extends the Auth "User" > model, like how James Bennett outlines in his article "Extending the > User Model" [1] by cre

Re: How to compare two different types in templates using ifequal

2009-03-02 Thread Darek
On Mar 2, 11:41 am, Alex Koshelev wrote: > Just now {% ifequal %} doesn't support filter expressions as arguments. So > you must prepare values by {% with %} tag before using them in {% ifequal > %}. Thank You, I will try it later.. ps. I'm sorry for double-post. --~--~-~--~~--