refactor: стандартизация моделей документов перемещения
Приведение к единому паттерну именования документов: - TransferBatch → TransferDocument - TransferItem → TransferDocumentItem - Удалена устаревшая модель Transfer (одиночные перемещения) - Удалена неиспользуемая модель StockMovement Изменения: - models.py: переименование классов, обновление related_names - admin.py: удаление регистраций Transfer/StockMovement - forms.py: обновление TransferHeaderForm - views/transfer.py: обновление всех view классов - templates: замена transfer_batch → transfer_document - urls.py: удаление путей для movements - views/__init__.py: удаление импорта StockMovementListView - views/movements.py: удален файл Миграция: 0005_refactor_transfer_models - RenameModel операции для сохранения данных - DeleteModel для Transfer и StockMovement Единый паттерн: *Document + *DocumentItem (WriteOffDocument, IncomingDocument, TransferDocument) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -21,8 +21,6 @@ from .views import (
|
||||
StockBatchListView, StockBatchDetailView,
|
||||
# SaleBatchAllocation
|
||||
SaleBatchAllocationListView,
|
||||
# StockMovement
|
||||
StockMovementListView,
|
||||
)
|
||||
# Showcase views
|
||||
from .views.showcase import ShowcaseListView, ShowcaseCreateView, ShowcaseUpdateView, ShowcaseDeleteView, SetDefaultShowcaseView
|
||||
@@ -131,9 +129,6 @@ urlpatterns = [
|
||||
# ==================== ALLOCATION (READ ONLY) ====================
|
||||
path('allocations/', SaleBatchAllocationListView.as_view(), name='allocation-list'),
|
||||
|
||||
# ==================== MOVEMENT (READ ONLY) ====================
|
||||
path('movements/', StockMovementListView.as_view(), name='movement-list'),
|
||||
|
||||
# ==================== SHOWCASE ====================
|
||||
path('showcases/', ShowcaseListView.as_view(), name='showcase-list'),
|
||||
path('showcases/create/', ShowcaseCreateView.as_view(), name='showcase-create'),
|
||||
|
||||
Reference in New Issue
Block a user