I am very new to django. My model is like below
i need to implement auto complete for the Mime Field with the 5 predefined values (text/plain, text/html, application/xml, application/octet stream,multipart/mixed). I googled a lot and i am unable to find the correct solution for this. can anybody please sugget me how to implement this?
Thanks in advance
asked 17 Aug '13, 06:26
You should add a
However, if you ever plan on the users / administrators of the site to be able to change them, it's better to do it in the database then. Make the
The second option has the benefit of making your code depend on database data instead of hard-coded values.
answered 17 Aug '13, 20:48