Files
octopus/myproject/orders/models/__init__.py

39 lines
1.1 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""
Модели приложения Orders.
Структура:
- OrderStatus: Статусы заказов
- Address: Адреса доставки
- Order: Главная модель заказа
- OrderItem: Позиции в заказе
- PaymentMethod: Способы оплаты (справочник)
- Transaction: Финансовые транзакции (платежи и возвраты)
"""
# Порядок импортов по зависимостям:
# 1. Независимые модели (справочники)
from .status import OrderStatus
from .payment_method import PaymentMethod
# 2. Модели с зависимостями от справочников
from .address import Address
# 3. Главная модель Order (зависит от Status, Address)
from .order import Order
# 4. Зависимые модели
from .kit_snapshot import KitSnapshot, KitItemSnapshot
from .order_item import OrderItem
from .transaction import Transaction
__all__ = [
'OrderStatus',
'Address',
'Order',
'OrderItem',
'PaymentMethod',
'Transaction',
'KitSnapshot',
'KitItemSnapshot',
]