feat: add duration to booking list
This commit is contained in:
@@ -20,7 +20,7 @@ class BookingOptions(ViewOptions[Booking], LoginRequired):
|
|||||||
'delete': 'booking:delete'
|
'delete': 'booking:delete'
|
||||||
}
|
}
|
||||||
list_filter = {'user': 'user__pk'}
|
list_filter = {'user': 'user__pk'}
|
||||||
list_columns = ['begin_time', 'end_time', 'user', 'type']
|
list_columns = ['begin_time', 'end_time', 'duration', 'user', 'type']
|
||||||
list_render = {
|
list_render = {
|
||||||
'begin_time': {
|
'begin_time': {
|
||||||
'date_format': 'D. d.m.y, H:i',
|
'date_format': 'D. d.m.y, H:i',
|
||||||
@@ -30,6 +30,9 @@ class BookingOptions(ViewOptions[Booking], LoginRequired):
|
|||||||
'date_format': 'H:i',
|
'date_format': 'H:i',
|
||||||
'width': '4rem',
|
'width': '4rem',
|
||||||
},
|
},
|
||||||
|
'duration': {
|
||||||
|
'verbose_name': 'Dauer',
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user