django/base/forms.py

12 lines
423 B
Python
Raw Normal View History

2023-05-05 20:16:08 +00:00
from django.forms import ModelForm
2023-05-30 09:30:00 +00:00
from .models import VendorsData, VendorsAddresses
2023-05-05 20:16:08 +00:00
class VendorEditForm(ModelForm):
class Meta:
model = VendorsData
2023-05-30 09:30:00 +00:00
fields = ['vendorCoverAmount', 'vendorPaidNotification', 'vendorPayWindow', 'vendorWebName', 'vendorWebAddr', 'vendorNetworkFee']
class VendorAddrAddForm(ModelForm):
class Meta:
model = VendorsAddresses
fields = ['coin', 'address']