-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom users not found #56
Comments
Thank you. |
I got that finally. The problem was that I passed username as an argument while my
so it can resolve url with email address in it. Same to the next line:
|
Hm, I don't think it's a good idea. |
See I changed it to I've already overridden the pattern for my project. But I think it would be nice for imagestore to allow email in url config since it uses |
I had few issues with url regex this night. Now I decided to use |
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.The text was updated successfully, but these errors were encountered: