Thanks, it works!
I missed the forms.ModelChoiceField in the documentation!
On Jul 20, 10:23 am, Nathan Ostgard <[EMAIL PROTECTED]> wrote:
> Use forms.ModelChoiceField instead:
>
> immagine =
> forms.ModelChoiceField(queryset=Pics.objects.all().order_by('immagine'),
> cache_choices=False,
Use forms.ModelChoiceField instead:
immagine =
forms.ModelChoiceField(queryset=Pics.objects.all().order_by('immagine'),
cache_choices=False, label='Pic', required=False)
On Jul 20, 1:15 am, ilDave <[EMAIL PROTECTED]> wrote:
> I've a form that handles file uploading to the database: it works
>
I've a form that handles file uploading to the database: it works
fine, the file is uploaded in the right place and the path is written
on the database (I use a models.ImageField field in a model).
Than I have another form, that uses newforms, with a field
that should be populated with all the
3 matches
Mail list logo