Ritu Singh
Problem:
Hello I have the following model and form
models.py
forms.py
How can I create a dropdown menu based on the builtin users in django, so that in my project form for users, I would have a drop down menu for the users instead of a textbox?
Solution 1:
You need to change the model to use User model and update form.
New models.py
New forms.py
Suggested blogs:
>Invoking Python script from scons and pass ARGLIST
>Migrate From Haruko To AWS App: 5 Simple Steps
>PHP cURL to upload video to azure blob storage
>PHP Error Solved: htaccess problem with an empty string in URL
>Plugins and Presets for Vuejs project
>Python Error Solved: load_associated_files do not load a txt file
>Python Error Solved: pg_config executable not found
>Set up Node.js & connect to a MongoDB Database Using Node.js
>Setting up a Cloud Composer environment: Step-by-step guide