コード例 #1
0
ファイル: views.py プロジェクト: senthilemis/staging-server
class DeleteView(UpdateMessageMixin, View):
    """Mark messages/conversations as deleted."""
    field_bit = 'deleted_at'
    success_msg = lz_("Messages or conversations successfully deleted.")
    field_value = now()
コード例 #2
0
ファイル: views.py プロジェクト: senthilemis/staging-server
class UndeleteView(UpdateMessageMixin, View):
    """Revert messages/conversations from marked as deleted."""
    field_bit = 'deleted_at'
    success_msg = lz_("Messages or conversations successfully recovered.")
コード例 #3
0
ファイル: views.py プロジェクト: senthilemis/staging-server
class ArchiveView(UpdateMessageMixin, View):
    """Mark messages/conversations as archived."""
    field_bit = 'archived'
    success_msg = lz_("Messages or conversations successfully archived.")
    field_value = True