Change labels

This commit is contained in:
dormantman 2020-01-27 20:33:51 +03:00
parent b687eb6024
commit e94787716e
2 changed files with 4 additions and 4 deletions

View File

@ -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')
]

View File

@ -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()