winofy-backend/apps/locations/admin.py
Ali Asadi 52adc732fa Initial Winofy backend: marketplace core (no payment integration)
Django 6 + DRF resource server against the Gooyal accounts OAuth2 service,
matching the Winsoo ecosystem's conventions. Covers locations, stores,
catalog, cart, checkout/orders (with the multi-store-cart split and the
status stepper), reviews, and notifications, plus a demo-data seed command.

Payment integration (wallet debits, online gateway, seller payouts) is
intentionally left out here — see feature/payment.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-10 14:03:15 +03:30

23 lines
652 B
Python

from django.contrib import admin
from .models import Address, City, Neighborhood
@admin.register(City)
class CityAdmin(admin.ModelAdmin):
list_display = ('name', 'slug', 'is_active')
search_fields = ('name',)
@admin.register(Neighborhood)
class NeighborhoodAdmin(admin.ModelAdmin):
list_display = ('name', 'city', 'is_active')
list_filter = ('city',)
search_fields = ('name',)
@admin.register(Address)
class AddressAdmin(admin.ModelAdmin):
list_display = ('user', 'label', 'city', 'neighborhood', 'is_default')
list_filter = ('label', 'city')
search_fields = ('full_address', 'recipient_name', 'recipient_phone')