mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PEP
This commit is contained in:
parent
edc2cc49c2
commit
069cebb669
@ -20,7 +20,7 @@ class HelperForm(forms.ModelForm):
|
|||||||
|
|
||||||
|
|
||||||
class DeleteForm(forms.Form):
|
class DeleteForm(forms.Form):
|
||||||
""" Generic deletion form which provides simple user confirmation
|
""" Generic deletion form which provides simple user confirmation
|
||||||
"""
|
"""
|
||||||
|
|
||||||
confirm_delete = forms.BooleanField(
|
confirm_delete = forms.BooleanField(
|
||||||
|
@ -12,7 +12,7 @@ from django.template.loader import render_to_string
|
|||||||
from django.http import JsonResponse
|
from django.http import JsonResponse
|
||||||
|
|
||||||
from django.views import View
|
from django.views import View
|
||||||
from django.views.generic import UpdateView, CreateView, DeleteView
|
from django.views.generic import UpdateView, CreateView
|
||||||
from django.views.generic.base import TemplateView
|
from django.views.generic.base import TemplateView
|
||||||
|
|
||||||
from part.models import Part
|
from part.models import Part
|
||||||
|
@ -804,4 +804,4 @@ class SupplierPartDelete(AjaxDeleteView):
|
|||||||
success_url = '/supplier/'
|
success_url = '/supplier/'
|
||||||
ajax_template_name = 'company/partdelete.html'
|
ajax_template_name = 'company/partdelete.html'
|
||||||
ajax_form_title = 'Delete Supplier Part'
|
ajax_form_title = 'Delete Supplier Part'
|
||||||
context_object_name = 'supplier_part'
|
context_object_name = 'supplier_part'
|
||||||
|
Loading…
Reference in New Issue
Block a user