def METHOD_NAME(model_name, parent_model_name=None, with_list=True, explicit_edit=False):
    model = apps.get_model('mapdata', model_name)
    model_name_plural = model._meta.default_related_name
    if parent_model_name:
        parent_model = apps.get_model('mapdata', parent_model_name)
        parent_model_name_plural = parent_model._meta.default_related_name
        prefix = (parent_model_name_plural+r'/<editpk:'+parent_model_name.lower()+'>/')+model_name_plural
    else:
        prefix = model_name_plural
    name_prefix = 'editor.'+model_name_plural+'.'
    kwargs = {'model': model_name, 'explicit_edit': explicit_edit}
    explicit_edit = 'edit' if explicit_edit else ''
    result = []
    if with_list:
        result.append(path(prefix+'/', list_objects, name=name_prefix+'list', kwargs=kwargs))
    result.extend([
        path(prefix+'/<editpk:pk>/'+explicit_edit, edit, name=name_prefix+'edit', kwargs=kwargs),
        path(prefix+'/create', edit, name=name_prefix+'create', kwargs=kwargs),
    ])
    return result