def get_absolute_url(self, content_object=None):
     content_object = content_object or self.content_object
     return reverse(self.view_name, kwargs={
         'content_type': ct(content_object).pk,
         'object_pk': content_object.pk
     })
def r(content_object):
    return {
        'content_type': ct(content_object).pk,
        'object_pk': content_object.pk,
    }