List order association in admin view
This commit is contained in:
parent
d6d9d61f27
commit
da1a708e28
1 changed files with 2 additions and 1 deletions
|
@ -28,11 +28,12 @@ class OrderAdminModel(ModelBaseView):
|
||||||
"Class for the model of a OrderAdmin"
|
"Class for the model of a OrderAdmin"
|
||||||
# pylint: disable=too-few-public-methods
|
# pylint: disable=too-few-public-methods
|
||||||
column_default_sort = ("starttime", True)
|
column_default_sort = ("starttime", True)
|
||||||
column_list = ["starttime", "stoptime", "location_name", "location_id", "courier"]
|
column_list = ["starttime", "stoptime", "location_name", "location_id", "courier", "association"]
|
||||||
column_labels = {
|
column_labels = {
|
||||||
"starttime": "Start Time",
|
"starttime": "Start Time",
|
||||||
"stoptime": "Closing Time",
|
"stoptime": "Closing Time",
|
||||||
"location_id": "HLDS Location ID",
|
"location_id": "HLDS Location ID",
|
||||||
|
"association": "Association",
|
||||||
}
|
}
|
||||||
form_excluded_columns = ["items", "courier_id"]
|
form_excluded_columns = ["items", "courier_id"]
|
||||||
can_delete = False
|
can_delete = False
|
||||||
|
|
Loading…
Reference in a new issue