How to make a dropdown list that can send data to Django (to Models) with Kivymd?

I found a recipe where I could save the results into a variable using the instructions in the KivyMD documentation, but some of the codes shared there did not work in my editor. So, the versions I use are: "python 3.11", "kivymd version 1.2.0" and the MDDropDownItemText module I need to use is not included in kivymd. For this reason, I cannot give special IDs to items and I cannot save the selected values ​​into a variable. What can be done here?

My goal was to record whether the user was male or female in the model I created in Django. And I thought I could do this by transferring the result from the drop down list into a variable. I tried following the instructions in the Kivymd documentation, but I encountered the results I mentioned above. KivyMD documentation: text

Вернуться на верх