python
Copy
profile
=
UserProfile.objects.get(
user_id
=
2
)
city
=
profile.user_data[
"person"
][
"address"
][
"city"
]