Re: Lists of fields
On Mon, May 21, 2012 at 12:45 PM, Horacio Martínez Alfaro <horacio.mx@gmail.com> wrote:
Hi,I'm working with forms and I need to have several fields of the same type (CharField, BooleanField, ChoiceField, FileField) grouped and I tried a list (I also tried a dictionary). Here is my code:However, when I "render_to_response" in my view, I got the labels right but not the fields:Am I missing something? Any pointers would be appreciated... Horacio.
Hello,you are trying to render FileField's so i recommend you implement a custom widget for your images and hack the render method.
You could be add upload_to argument in to FileField and you you will load images i recommend you use ImageField[1] and you can check this read this too http://bit.ly/JLPh7t
Regards,
--
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.
Cristian Salamea
@ovnicraft
--
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home