Change labels
This commit is contained in:
parent
b687eb6024
commit
e94787716e
|
|
@ -64,6 +64,6 @@ urlpatterns = [
|
|||
name='employee-positions-list'),
|
||||
path('employee_establishments/<int:pk>/', views.EmployeeEstablishmentsListView.as_view(),
|
||||
name='employee-establishments-list'),
|
||||
path('employee_establishment_positions/<int:pk>/', views.EmployeeEstablishmentPositionsListView.as_view(),
|
||||
name='employee-establishment-positions-list')
|
||||
path('employee_establishment_positions/<int:pk>/', views.EmployeeEstablishmentPositionsView.as_view(),
|
||||
name='employee-establishment-positions')
|
||||
]
|
||||
|
|
|
|||
|
|
@ -33,8 +33,8 @@ class EstablishmentListCreateView(EstablishmentMixinViews, generics.ListCreateAP
|
|||
serializer_class = serializers.EstablishmentListCreateSerializer
|
||||
|
||||
|
||||
class EmployeeEstablishmentPositionsListView(generics.GenericAPIView):
|
||||
"""Establishment by employee list view."""
|
||||
class EmployeeEstablishmentPositionsView(generics.GenericAPIView):
|
||||
"""Establishment by employee view."""
|
||||
|
||||
permission_classes = [IsWineryReviewer | IsCountryAdmin | IsEstablishmentManager]
|
||||
queryset = models.EstablishmentEmployee.objects.all()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user