switch from ownCloud to minIO

buttons in table are buttons and do edit and delete properly
This commit is contained in:
2025-07-29 18:51:09 +03:00
parent 4603953458
commit c1183c22ea
40 changed files with 1263 additions and 241 deletions
View File
+11
View File
@@ -0,0 +1,11 @@
from django import template
register = template.Library()
@register.filter
def distinct_vehicles(vehicles):
vehicles_set = set(vehicles.split(','))
vehicles_str = ', '.join(sorted(vehicles_set))
return vehicles_str
+2 -1
View File
@@ -7,7 +7,8 @@ urlpatterns = [
path('client/', include([
path('', ClientBookingView.as_view(), name='client_booking'),
path('create/', CreateBookingView.as_view(), name='client_booking_create'),
path('update/<int:pk>/', ClientBookingUpdateView.as_view(), name='client_booking_update'),
path('<int:pk>/update/', ClientBookingUpdateView.as_view(), name='client_booking_update'),
path('<int:pk>/active/', ClientBookingUpdateView.as_view(), name='client_booking_active'),
])),
path('employee/', BookingListView.as_view(), name='employee_bookings'),
]