Beispiel #1
0
class DeleteView(UpdateMessageMixin, View):
    """Mark messages/conversations as deleted."""
    field_bit = 'deleted_at'
    success_msg = lz_("Messages or conversations successfully deleted.")
    field_value = now()
Beispiel #2
0
class UndeleteView(UpdateMessageMixin, View):
    """Revert messages/conversations from marked as deleted."""
    field_bit = 'deleted_at'
    success_msg = lz_("Messages or conversations successfully recovered.")
Beispiel #3
0
class ArchiveView(UpdateMessageMixin, View):
    """Mark messages/conversations as archived."""
    field_bit = 'archived'
    success_msg = lz_("Messages or conversations successfully archived.")
    field_value = True