my upload form looks like this:

class UploadForm(forms.Form):

    def __init__(self, path_server, path, *args, **kwargs):
        self.path_server = path_server
        self.path = path
        super(UploadForm, self).__init__(*args, **kwargs)

    file = forms.FileField(label="File")
    use_image_generator = forms.BooleanField()

    def clean_file(self):
        ...

now, I´d like to use UploadFormSet = formset_factory(UploadForm,
extra=5).
question is: where do I set path_server & path?

I´ve tried:
UploadFormSet = formset_factory(UploadForm, extra=5)
formset = UploadFormSet(PATH_SERVER, path)

and:
UploadFormSet = formset_factory(UploadForm(PATH_SERVER, path),
extra=5)
formset = UploadFormSet()

... but this doesn´t work.

patrick
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to