from django.contrib import admin
from django.utils.safestring import mark_safe
from django.core import urlresolvers


class MyModelAdmin(admin.ModelAdmin):
    readonly_fields = ['user_link']

def user_link(self, obj):
    change_url = urlresolvers.reverse('admin:auth_user_change', args=(obj.
        user.id,))
return mark_safe('<a href="%s">%s</a>' % (change_url, obj.user.email))
user_link.short_description = 'User'
Making Django Readonly ForeignKey Field in Admin Render as a Link