Perhaps the user-mailinglist is a better place for this, but anyway... > I don't think the library should add text like that, what do you > think?
I really think it should. The methods defined in the form are some default, that can be used if appropriate. If not newforms is usable in any way you want. You can use all the flexibility Python and newforms provides here: I use this (colon-free) code for form-display: (put into a separate file that is included in the templates) -----------8<-------------------------------------------------------- {% for field in form %} <div> <label><span>{{ field.label|escape }}</span> {{ field }}</label> {% if field.errors %}<div class="error">{{ field.errors|join:", "|escape }}</div>{% endif %} </div> {% endfor %} -------------------------------------------------------->8----------- (<label> includes field to get it working in the IE, <div> for linebreaks, that even work in text-browsers and because normal lines cannot be styled using CSS) You could even write your own Form-class (extending newforms.Form), that outputs other things (e.g. by just adding an as_my_style()-method and using this as default). If you really want to change many thing you can create your own forms-module (importing newforms.* and overwriting things you need to change). I use this way to have an drop-in replacement for the forms without forking the main-code. I changed the date-fields to accept german notation for example. The big advantage here is that forms.DateField can be used, so nothing needs to be changed (except for the input-statement). Perhaps the colon can be moved into the display-methods (as_p, as_ul, ...) or an parameter/attribute could be added to the form, but as most people use forms with colons and newforms provides anything you need to display something different I think this should stay default. Greetings, David Danier --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@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-developers?hl=en -~----------~----~----~----~------~----~------~--~---