mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-16 09:46:31 +00:00
PEP fixes
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import io
|
||||
import os
|
||||
|
||||
from wsgiref.util import FileWrapper
|
||||
from django.http import StreamingHttpResponse, HttpResponse
|
||||
from django.http import StreamingHttpResponse
|
||||
|
||||
|
||||
def WrapWithQuotes(text):
|
||||
|
@@ -145,8 +145,6 @@ class AjaxCreateView(AjaxMixin, CreateView):
|
||||
return super(CreateView, self).post(request, *args, **kwargs)
|
||||
|
||||
|
||||
|
||||
|
||||
class AjaxUpdateView(AjaxMixin, UpdateView):
|
||||
|
||||
""" An 'AJAXified' UpdateView for updating an object in the db
|
||||
@@ -187,13 +185,11 @@ class AjaxUpdateView(AjaxMixin, UpdateView):
|
||||
return super(UpdateView, self).post(request, *args, **kwargs)
|
||||
|
||||
|
||||
|
||||
|
||||
class AjaxDeleteView(AjaxMixin, DeleteView):
|
||||
|
||||
""" An 'AJAXified DeleteView for removing an object from the DB
|
||||
- Returns a HTML object (not a form!) in JSON format (for delivery to a modal window)
|
||||
- Handles deletion
|
||||
- Handles deletion
|
||||
"""
|
||||
|
||||
def get(self, request, *args, **kwargs):
|
||||
|
Reference in New Issue
Block a user