I've got a basic friend invite form in my Django app that looks like this:
class FriendInviteForm(forms.Form):
email = forms.EmailField()
It works perfectly when a user is inviting a single person, but I'd like to allow the user to invite as many of their friends as they'd like. The implementation I am trying to build would be to display the form with 3 email fields, and allow the user to dynamically add more fields on the client side using jQuery.
What is the best way to handle the creation of such a form, and how would I process the email fields in my view? Can I still use Django's built in forms for this?
Thanks!