Commit 7b846305ab1b2432792c7080b59f7958a865bd90
1 parent
8ab9e92c
Exists in
master
and in
2 other branches
Fixing error when creating pdf file resource
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
pdf_file/views.py
@@ -101,7 +101,10 @@ class PDFFileCreateView(LoginRequiredMixin, LogMixin , generic.CreateView): | @@ -101,7 +101,10 @@ class PDFFileCreateView(LoginRequiredMixin, LogMixin , generic.CreateView): | ||
101 | login_url = reverse_lazy("users:login") | 101 | login_url = reverse_lazy("users:login") |
102 | redirect_field_name = 'next' | 102 | redirect_field_name = 'next' |
103 | 103 | ||
104 | + log_component = 'resources' | ||
104 | log_resource = 'pdffile' | 105 | log_resource = 'pdffile' |
106 | + log_action = 'create' | ||
107 | + log_context = {} | ||
105 | 108 | ||
106 | def dispatch(self, request, *args, **kwargs): | 109 | def dispatch(self, request, *args, **kwargs): |
107 | slug = self.kwargs.get('slug', '') | 110 | slug = self.kwargs.get('slug', '') |