def METHOD_NAME(self, form):
    """Return url."""
    url_name = '{}_autocomp_{}'.format(form.__name__, self.field_id)
    self.widget = self.widget_obj(url=url_name)
    auto_view = type('Autoview{}{}'.format(form.__name__, self.field_id),
                     (self.view_obj,), {})
    return url(r'^{}_{}_autocomp$'.format(form.__name__, self.field_id),
               auto_view.as_view(queryset=self.queryset), name=url_name)