Template
Closes #9. Shop-gated buyer accounts, purchase reviews, Stripe customer ids, shipment tracking, slim public contact form, and a template-neutral seed_demo command.
17 lines
552 B
Python
17 lines
552 B
Python
from django.contrib import admin
|
|
|
|
from accounts.models import CustomerProfile, RealtorProfile
|
|
|
|
|
|
@admin.register(RealtorProfile)
|
|
class RealtorProfileAdmin(admin.ModelAdmin):
|
|
list_display = ("user", "display_name", "phone")
|
|
search_fields = ("user__username", "display_name")
|
|
|
|
|
|
@admin.register(CustomerProfile)
|
|
class CustomerProfileAdmin(admin.ModelAdmin):
|
|
list_display = ("user", "phone", "stripe_customer_id")
|
|
search_fields = ("user__username", "user__email", "phone", "stripe_customer_id")
|
|
readonly_fields = ("stripe_customer_id",)
|