generated from westfarn/web_django_template
CI / test (pull_request) Successful in 35s
Shoppers can register, save shipping details, and view order history while cards stay on Stripe. EasyPost tracker updates (including numbers from Pirate Ship) and 1–5 star reviews are limited to buyers. The contact form now only asks for email and a message.
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",)
|