

def get_link_templates(self, request):
    uri = request.build_absolute_uri
    return {
        'self': reverse_tmpl(request, 'serrano:field-stats', {
            'pk': (int, 'id'),
        }),
        'parent': reverse_tmpl(uri, 'serrano:field', {
            'pk': (int, 'parent_id'),
        }),
    }

dataset/ETHPy150Open chop-dbhi/serrano/serrano/resources/field/stats.py FieldStats.get_link_templates/VarMisuse@25/33 `uri`->`request`