Friday, September 30, 2011

Re: [Admin] Form Fields Rendering Completely Incorrectly

Much obliged, thank you.

On Fri, Sep 30, 2011 at 4:35 PM, Ilian Iliev <ilian@i-n-i.org> wrote:
As stated in dcumentation: https://docs.djangoproject.com/en/dev/ref/models/fields/#textfield

A large text field. The admin represents this as a <textarea> (a multi-line input).
You should use CharField instead of TextField

--
eng. Ilian Iliev
Web Software Developer

Mobile: +359 88 66 08 400
Website: http://ilian.i-n-i.org


On Fri, Sep 30, 2011 at 2:01 PM, Nikhil Somaru <nsomaru@gmail.com> wrote:
Hi All,

Django Version: 1.3
OS: Mac OS X Lion
Browsers: Chrome, Safari, FF
Other: Virtualenv

The models are only registered with admin, there are no ModelAdmin classes. For some reason, all TextField's on all models (even those with really small max_length's) render as textarea, even those which have the parameter choices passed to them (they should be a drop-down box). The class being applied to them is vLargeTextField.

This is a brand-new Django project, there is no custom css/html and the devserver is returning 200 (OK) for all requests.

Your help is appreciated.
--
Yours,
Nikhil Somaru

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


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



--
Yours,
Nikhil Somaru

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

No comments:

Post a Comment