Re: how to create a hidden field
On Aug 2, 4:56 pm, Brian Neal <bgn...@gmail.com> wrote:
> Oh...you are trying to do this in the *admin*? Are you sure you just
> don't need to "exclude" the form field?
Yep, that's what I needed. I already had an admin class for the
model, so it was just a matter of adding the line to exclude the
field.
For some reason I thought django would complain if there wasn't a
field (hidden or not) in the form for each of the model class
attributes. Not sure why I thought that. Excluding the field is the
way to go.
Thanks
--
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