def build_url_field(self, field_name, model_class):
field, kwargs = super().build_url_field(field_name, model_class)<EOL>view = self.root.context["<STR_LIT>"]<EOL>kwargs["<STR_LIT>"] = view.get_url_name("<STR_LIT>")<EOL>return field, kwargs<EOL>
This is needed due to DRF's model serializer uses the queryset to build url name

# TODO: Move this to own serializer mixin or fix problem elsewhere?