Hello and Greets,
I am very new to Django with moderate Python experience, and I probably should not be asking this at this stage of my development, but I have been searching on how to do what I want to do and could not find it, so I decided to post my question here. I want to learn the full workings of this wonderful framework while applying it to SEVERAL conceived uses along the way, so while I progress through a few courses on the basics, I am also creating working applications for my own use. This is the reason I am asking about this functionality now.
My parallel application/site is a simple budget manager. On the admin site, as you all know, I can create transactions, accounts, etc. using the models I created. I am using a one-to-many relationship in a field using ForeignKey, between transactions and accounts, and it works great! The problem is… in the drop-down list, I want to show more than one column. Each account has 3 fields, a full long name, a short name, and an acronym. I want to select from a list of acronyms, but also show the short account name beside it. I am sure this question qualifies as RUNNING before learning to crawl, but I could not resist asking now. If that offends, I certainly apologize!!
I am creating this application beside the locallibrary course site in this tutorial at https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Home_page. I am at Django Tutorial Part 5: Creating our home page so I am sure I will come across this functionality eventually. And not being able to do what I mentioned is not a real big deal, I just like to explore the possibilities.
I never used a framework before. I was in the middle of writing my own using ajax, jquery, and php when it became considerably convoluted and I certainly lost my way. I am so impressed with Python, and now Django that I cannot wait to see what this can do for me and my needs. As an embedded systems designer, I need database supported sites for inventory, designs, budgeting, and documentation. I am hoping to do all of these with Django, Python, Conda, and vscode.
Any suggestions of further reading and research would be appreciated.
Thank you for your time!
Hop of HopWorks Embedded Imagination