Sunday, February 28, 2010

Re: How does the default option for a field work in the model?

On Sun, Feb 28, 2010 at 5:13 PM, Andrej <amasiar@gmail.com> wrote:
> I want to use the Admin module to pre-set default values when creating
> the form. For example, in the gender case, I want to have default
> "Unknown" option. Is this this not possible?

It is possible; all you have to do is specify the choices you want,
either in the model or in a form to be used specifically by the admin.
The techniques for both options are covered in the appropriate places
in Django's documentation.


--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate