Exemplo n.º 1
0
def flag_note(request, pk):
    """Record that somebody has flagged a note."""
    return ajax_increment(Note, request, pk, FLAG_FIELD,
                          USER_PROFILE_FLAGS_FIELD, process_note_flag_events)
Exemplo n.º 2
0
def flag_note(request, pk):
    """Record that somebody has flagged a note."""
    return ajax_increment(Note, request, pk, FLAG_FIELD, USER_PROFILE_FLAGS_FIELD, process_note_flag_events)
Exemplo n.º 3
0
def thank_note(request, pk):
    """Record that somebody has thanked a note."""
    return ajax_increment(Note, request, pk, THANKS_FIELD,
                          USER_PROFILE_THANKS_FIELD, process_note_thank_events)
Exemplo n.º 4
0
def thank_note(request, pk):
    """Record that somebody has thanked a note."""
    return ajax_increment(Note, request, pk, THANKS_FIELD, USER_PROFILE_THANKS_FIELD, process_note_thank_events)