view_note_update.py 382 B

123456789101112
  1. """Представление для обновление примечания."""
  2. from django.views import generic
  3. from ya_note.notes.forms import FormNote
  4. from .view_note_base import ViewNoteBase
  5. class ViewNoteUpdate(ViewNoteBase, generic.UpdateView):
  6. """Редактирование заметки."""
  7. template_name: str = 'notes/form.html'
  8. form_class = FormNote