mardi 28 novembre 2017

Django FileUpload choice inside of a dropdown (ModelChoiceField)

Hi is it possible to put a choice inside of a dropdown and when it is clicked it will allow user to upload file, right now I have a dynamic dropdown built using ModelChoiceField but I want to add a choice that will allow the user to upload the file if they don't want to choose to use the default choices.

Something like the one in the picture but when the '------------' choice is clicked it will pop up something that will allow user to upload file.

Image example

I've been looking for the answer but couldn't find one unfortunately. thanks.




Aucun commentaire:

Enregistrer un commentaire