# populate data according to one field into another field in a modelForm

**URL:** <https://forum.djangoproject.com/t/populate-data-according-to-one-field-into-another-field-in-a-modelform/45901>\
**Category:** Forms & APIs\
**Created:** [August 30, 2026, 6:58am UTC](https://forum.djangoproject.com/t/populate-data-according-to-one-field-into-another-field-in-a-modelform/45901 "2026-08-30T06:58:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sobhagiyass1991](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/sobhagiyass1991/32/33220_2.png) [@sobhagiyass1991](https://forum.djangoproject.com/u/sobhagiyass1991)\
**Post date:** [August 30, 2026, 6:58am UTC](https://forum.djangoproject.com/t/populate-data-according-to-one-field-into-another-field-in-a-modelform/45901/1 "2026-08-30T06:58:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [August 31, 2026, 1:17pm UTC](https://forum.djangoproject.com/t/populate-data-according-to-one-field-into-another-field-in-a-modelform/45901/2 "2026-08-31T13:17:51Z")

</div>

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.
