On 1/6/08, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> On Sat, 2008-01-05 at 22:43 +0300, Alexander Chemeris wrote:
> > Is there any way to exclude field from being generated by
> > ModelForm, but still be present on admin interface? If I pass
> > 'editable=False' to some element, it is not possible to
> > enable it in admin interface - I tried to list it in Admin.fields,
> > but such combination lead to KeyError "Could not find Formfield or
> > InlineObjectCollection named 'username'" ('username' is the name
> > of field, I'm playing with).
>
> See the "exclude" attribute on the ModelForm's Meta class. Documented in
> docs/modelforms.txt.

Aha, "exclude" solved my problem, thanks.

-- 
Regards,
Alexander Chemeris.

SIPez LLC.
SIP VoIP, IM and Presence Consulting
http://www.SIPez.com
tel: +1 (617) 273-4000

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to