[Answer]-Django Class Based Views: How to use username instead of ID to get data from extended model

1👍

Only the User object is present in the context. Use the reverse relationship to access the profile from the User model:

{{ user.userprofile.reputation }}

More info in the docs

Leave a comment