Hi everyone ,
i am a Django Novice. and i make two models such as Donor which will save Donor info with Blood group (through choices params) and Donation model which will save information of that donor . But i want to save that donor’s blood group in donation model and but i am unable to populate that field in model form . i tried many things like htmx and queryset but no result
Welcome @sobhagiyass1991 !
It’s going to be difficult to help you with this specific issue without seeing the models, views, and forms involved, along with a more detail description of what exactly is going wrong. (Error messages? Wrong data?)
If you post the code that you’re trying to use, I’m sure someone here will try to help you.
When posting code here, enclose the code between lines of three
backtick - ` characters. This means you’ll have a line of ```, then your code,
then another line of ```. This forces the forum software to keep your code
properly formatted.