Don't set editable=False, instead, just set the fields class properties in the Admin inner class and the Meta inner class (on the ModelForm).
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). > > > -- > 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 -~----------~----~----~----~------~----~------~--~---