Beispiel #1
0
def random_paste(request):
    """
    Redirect to a random paste
    """
    char_id = Paste.get_random_char_id()
    
    if char_id:
        return redirect("show_paste", char_id=char_id)
    else:
        return redirect("home:home")
Beispiel #2
0
def random_paste(request):
    """
    Redirect to a random paste
    """
    char_id = Paste.get_random_char_id()

    if char_id:
        return redirect("show_paste", char_id=char_id)
    else:
        return redirect("home:home")