class MyModel(models.Model):

    def get_admin_url(self):
        content_type = ContentType.objects.get_for_model(self.__class__)
return urlresolvers.reverse('admin:%s_%s_change' % (content_type.app_label,
    content_type.model), args=(self.id,))
Django - How to get admin url from model instance