What I have is a Profile object that links to my User object. And I'm trying to get the 'image' data from it.
Using Shell this is what I was doing
I can see it.
The answer is straight forward and you need to do the following to call the specific item that you need.
python manage.py shell
from users.models import Profile
profile = Profile.objects.filter(user=1)profile.image
Which would return me the message.
'QuerySet' object has no attribute 'image'
'QuerySet' object has no attribute 'image'
However I know its there because when I run
profile.values()
I can see it.
The answer is straight forward and you need to do the following to call the specific item that you need.
profile = Profile.objects.filter(user=1).first()
You'll then be able to user 'profile.image' to return the data.