account/routes page

This commit is contained in:
2025-05-21 15:39:00 +03:00
parent d526f0730b
commit c4e1e16e79
17 changed files with 626 additions and 993 deletions

View File

@@ -6,8 +6,8 @@ from routes.models import Route
class RouteInline(admin.TabularInline):
model = Route
fields = ('owner_type', 'type_transport', 'from_city', 'to_city', 'cargo_type', 'departure_DT', 'arrival_DT')
readonly_fields = ('owner_type', 'type_transport', 'from_city', 'to_city', 'cargo_type', 'departure_DT', 'arrival_DT')
fields = ('owner_type', 'type_transport', 'from_city', 'to_city', 'cargo_type', 'departure_DT', 'arrival_DT', 'comment')
# readonly_fields = ('owner_type', 'type_transport', 'from_city', 'to_city', 'cargo_type', 'departure_DT', 'arrival_DT')
extra = 0
can_delete = False
verbose_name = 'Маршрут пользователя'