Wiadomość napisana w dniu 2008-10-07, o godz. 14:36, przez Ulises: > >> and for other controls, I need to generate >> <p class="something"> <input> <label> > > How about using widget.attrs? > > http://docs.djangoproject.com/en/dev/ref/forms/widgets/#django.forms.Widget.attrs
AFAIK, this adds attributes to widget output. Using these attributes in surrounding element, you'd end up with: <p class="something"><input class="something" /><label /></p> -- We read Knuth so you don't have to. - Tim Peters Jarek Zgoda, R&D, Redefine [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---