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

change visits/admin.py to redirect to users

parent e3b0a1b1
No related branches found
No related tags found
No related merge requests found
......@@ -119,6 +119,7 @@ class ParticipationAdmin(admin.ModelAdmin):
actions = [accept_selected_participations, reject_selected_participations]
def user_link (self,book):
url=reverse("admin:users_user_change", args=[book.user.id])
link = '<a href="%s">%s</a>' % (url, book.user.email)
return mark_safe(link)
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