forked from mike/django
18 lines
700 B
Python
18 lines
700 B
Python
from django.contrib import admin
|
|
|
|
# Register your models here.
|
|
from .models import VendorsData, CryptoCoins, VendorsAddresses
|
|
|
|
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) |