I have model UserProfile containing a OneToOneField on a class called Info:
class UserProfile(models.Model):
user = models.OneToOneField(User, primary_key=True)
info = models.OneToOneField(Info, null = True, blank= True)
in my template I have access to the profile with
{{user.get_profile}}
but how to access Info?
I have tried
{{user.get_profile.info.photo.url}}
without success.