Hi,
I have a custom user model CustomUser. On album list page under each album cover I put album user name with a link to {% url 'imagestore:user' album.user.username %}, and the url resolves correctly. But when I click the link I open Http404 page with No CustomUser matches the given query message. Using pdb debugger I found that in this line the specified user cannot be found as it is being looked for using django.contrib.auth.models.User while it is an instance of the custom model.
Hi,
I have a custom user model CustomUser. On album list page under each album cover I put album user name with a link to
{% url 'imagestore:user' album.user.username %}, and the url resolves correctly. But when I click the link I open Http404 page with No CustomUser matches the given query message. Using pdb debugger I found that in this line the specified user cannot be found as it is being looked for using django.contrib.auth.models.User while it is an instance of the custom model.