Skip to content

Custom users not found #56

@sandino

Description

@sandino

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions