[Fixed]-Can't display data from one to one relationship, just render from one model

1👍

Thats because you don’t have an email field. If you’re using Django’s auth, then the Django User class does have an email, so you can access it via object.userID.email.

Note, including ID in your field names isn’t a very good idea since it isn’t an id, its an object relation.

👤Sayse

Leave a comment