On Sat, 2008-01-05 at 22:43 +0300, Alexander Chemeris wrote:
> Hi,
> 
> 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.

Regards,
Malcolm

-- 
Quantum mechanics: the dreams stuff is made of. 
http://www.pointy-stick.com/blog/


--~--~---------~--~----~------------~-------~--~----~
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