django/base/forms.py

12 lines
423 B
Python

from django.forms import ModelForm
from .models import VendorsData, VendorsAddresses
class VendorEditForm(ModelForm):
class Meta:
model = VendorsData
fields = ['vendorCoverAmount', 'vendorPaidNotification', 'vendorPayWindow', 'vendorWebName', 'vendorWebAddr', 'vendorNetworkFee']
class VendorAddrAddForm(ModelForm):
class Meta:
model = VendorsAddresses
fields = ['coin', 'address']