101 / authentication /admin.py
thejagstudio's picture
Upload 46 files
5868895 verified
raw
history blame contribute delete
466 Bytes
from django.contrib import admin
from .models import Coupon, UserData
# Register your models here.
class UserDataAdmin(admin.ModelAdmin):
list_display = ['user', 'phone', 'birthDate', 'rewardPoints']
class CouponAdmin(admin.ModelAdmin):
list_display = ['name', 'pointsNeededForRedemption', 'couponCode', 'loyaltyCode', 'discount', 'isExpired', 'expiryDate',]
admin.site.register(Coupon, CouponAdmin)
admin.site.register(UserData, UserDataAdmin)