コード例 #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)
コード例 #2
0
ファイル: views.py プロジェクト: FinalsClub/karmaworld
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)
コード例 #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)
コード例 #4
0
ファイル: views.py プロジェクト: FinalsClub/karmaworld
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)