Skip to content
Snippets Groups Projects
Commit d3f792b7 authored by Auriane Strasser's avatar Auriane Strasser
Browse files

change visits/admin.py to redirect to users

parent 740340e5
Branches
No related tags found
No related merge requests found
...@@ -117,7 +117,7 @@ class ParticipationAdmin(admin.ModelAdmin): ...@@ -117,7 +117,7 @@ class ParticipationAdmin(admin.ModelAdmin):
list_filter = ('submitted', 'accepted', 'present') list_filter = ('submitted', 'accepted', 'present')
actions = [accept_selected_participations, reject_selected_participations] actions = [accept_selected_participations, reject_selected_participations]
def user_link (self,book): def user_link (self,book):
url=reverse("admin:visits_user_change", args=[book.user.id]) url=reverse("admin:users_user_change", args=[book.user.id])
return mark_safe(link) return mark_safe(link)
user_link.short_description = 'Utilisateur' user_link.short_description = 'Utilisateur'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment