Starting from the tutorial, I figured a good first exercise would be to create a front-facing form for creating a poll question and choices. I've successfully done it, but I'd like the implementation of it to be closer to the functionality of the admin interface for adding and removing choices.
I've got a button called "Add Choice" and when clicked the choice is added, but it's also validated at the same time even though I'm not saving anything. So there are errors when the button is clicked no matter what. I checked out the code the template code for the admin interface and the sheer number of variables and tags makes it daunting to replicate. I also saw that it used Formsets but when I tried to use a Formset I couldn't create blank choices, or delete choices, etc. Can anyone guide me here? Where should I start? Should I use Forms or Formsets? Or should I forget Django's forms altogether? I know it can be done because the Admin interface does it--am I just making it harder than it is? All guidance is appreciated. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---