2.1.33 short names for type_trasport and cargo_type in route widget

This commit is contained in:
SDE
2025-02-04 18:08:29 +03:00
parent a67436b854
commit 05798c4b49
5 changed files with 38 additions and 6 deletions

View File

@@ -30,6 +30,7 @@ class Admin_Route(Admin_Trans_BaseModel):
]
search_fields = [
'id',
'owner__first_name', 'owner__last_name', 'from_city__name', 'to_city__name', 'owner__email'
]
raw_id_fields = ['from_city', 'to_city']