django/base/admin.py

18 lines
700 B
Python
Raw Normal View History

2023-04-23 16:08:01 +00:00
from django.contrib import admin
2023-05-05 20:15:03 +00:00
# Register your models here.
2023-05-30 09:30:00 +00:00
from .models import VendorsData, CryptoCoins, VendorsAddresses
2023-05-05 20:15:03 +00:00
2023-05-30 09:30:00 +00:00
class VendorDetails(admin.ModelAdmin):
fields = ["vendor"]
list_display = ("vendorid_id", "vendor", "vendorWebName", "vendorWebAddr", "vendorAddDate", "vendorIsActive")
class CryptoDetails(admin.ModelAdmin):
list_display = ("coinName", "coinSymbol", "coinAddDate", "coinIsActive" )
class VendorAddressDetails(admin.ModelAdmin):
list_display = ("coin", "address", "vendor_id", "vendorid_id", "addrIsActive")
admin.site.register(VendorsData, VendorDetails)
admin.site.register(CryptoCoins, CryptoDetails)
admin.site.register(VendorsAddresses, VendorAddressDetails)