(key, project)
return url
Resolve redirect url after pasting or moving.
Resolve redirect url after pasting or moving.
Resolve redirect url after pasting or moving .
def resolve_paste_url(key, project):
    """
    Resolve redirect url after pasting or moving.
    """
    url = project.url()
    if key == COPIED_RECIPES:
        url = reverse("recipe_list", kwargs=dict(uid=project.uid))
    elif key in [COPIED_DATA, COPIED_FILES]:
        url = reverse("data_list", kwargs=dict(uid=project.uid))

    return url
def resolve_paste_url ( key , project ) : url = project . url ( ) if key == COPIED_RECIPES : url = reverse ( "recipe_list" , kwargs = dict ( uid = project . uid ) ) elif key in [ COPIED_DATA , COPIED_FILES ] : url = reverse ( "data_list" , kwargs = dict ( uid = project . uid ) ) return url