diff options
Diffstat (limited to 'apps/notes/views.py')
-rw-r--r-- | apps/notes/views.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/apps/notes/views.py b/apps/notes/views.py index 280020a..2418043 100644 --- a/apps/notes/views.py +++ b/apps/notes/views.py @@ -20,7 +20,7 @@ from rest_framework import permissions from .serializers import NoteSerializer, NotebookSerializer, NoteTagSerializer from .models import Note, Notebook, LuxTag from .forms import NoteForm, NotebookForm -from utils.views import AjaxableResponseMixin +from utils.views import AjaxableResponseMixin, LoggedInViewWithUser ################## # Base Views @@ -37,15 +37,6 @@ class BaseDetailView(DetailView): pass -@method_decorator(login_required, name='dispatch') -class LoggedInViewWithUser(FormView): - - def get_form_kwargs(self, **kwargs): - kwargs = super().get_form_kwargs(**kwargs) - kwargs.update({'user': self.request.user}) - return kwargs - - ################## # Note Views ################## |