account/routes page
This commit is contained in:
@@ -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 = 'Маршрут пользователя'
|
||||
|
||||
Reference in New Issue
Block a user