mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 13:05:42 +00:00
Deleted extraneous form code
This commit is contained in:
@ -1,39 +1,12 @@
|
||||
from django import forms
|
||||
from crispy_forms.helper import FormHelper
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from InvenTree.forms import HelperForm
|
||||
|
||||
from .models import Company
|
||||
|
||||
|
||||
"""
|
||||
class EditSupplierOrderForm(forms.ModelForm):
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(EditSupplierOrderForm, self).__init__(*args, **kwargs)
|
||||
self.helper = FormHelper()
|
||||
|
||||
self.helper.form_id = 'id-edit-part-form'
|
||||
self.helper.form_class = 'blueForms'
|
||||
self.helper.form_method = 'post'
|
||||
|
||||
self.helper.add_input(Submit('submit', 'Submit'))
|
||||
|
||||
class Meta:
|
||||
model = SupplierOrder
|
||||
fields = [
|
||||
'internal_ref',
|
||||
'supplier',
|
||||
'notes',
|
||||
'issued_date',
|
||||
]
|
||||
"""
|
||||
|
||||
|
||||
class EditCompanyForm(forms.ModelForm):
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(EditCompanyForm, self).__init__(*args, **kwargs)
|
||||
self.helper = FormHelper()
|
||||
self.helper.form_tag = False
|
||||
class EditCompanyForm(HelperForm):
|
||||
|
||||
class Meta:
|
||||
model = Company
|
||||
|
Reference in New Issue
Block a user