aboutsummaryrefslogtreecommitdiff
path: root/apps/notes/views.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2019-05-02 09:36:31 -0500
committerluxagraf <sng@luxagraf.net>2019-05-02 09:36:31 -0500
commit9d73326aad4d9aee61a16f7274819fa93f32dc72 (patch)
tree9cf21f7a514478ef3e1593dd346dad144c37fdea /apps/notes/views.py
parent5b9343d77d8321e44d1ffc60769c651771dc38dd (diff)
migrated to LXC container
Diffstat (limited to 'apps/notes/views.py')
-rw-r--r--apps/notes/views.py11
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
##################