1👍
You have ForeingKey relation, this is relation one to many, if you wanna access to payment_details
you have to ask for all related objects by payment_details.all()
.
Consider using one to one relation (https://docs.djangoproject.com/en/4.0/topics/db/examples/one_to_one/)
, after change to one to one relation this member.payment_details.payment_status
will be work.
Source:stackexchange.com