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)
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)