INFO "GET /api/v1/api-docs/ HTTP/1.1" 200 2495
view's AccountActivityViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/crm/views.py", line 431, in get_queryset
activity = Activity.objects.filter(account=self.kwargs['accounts_pk'])
KeyError: 'accounts_pk'
INFO "GET /static/drf-yasg/swagger-ui-dist/favicon-32x32.png HTTP/1.1" 200 628
view's AccountContactPersonViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/crm/views.py", line 376, in get_queryset
contact_person = ContactPerson.objects.filter(account=self.kwargs['accounts_pk'],
KeyError: 'accounts_pk'
view's AccountContactPersonViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/crm/views.py", line 376, in get_queryset
contact_person = ContactPerson.objects.filter(account=self.kwargs['accounts_pk'],
KeyError: 'accounts_pk'
view's OpportunityContactPersonViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/crm/views.py", line 463, in get_queryset
account_instance = get_object_or_404(Account, id=self.kwargs['accounts_pk'])
KeyError: 'accounts_pk'
view's OpportunityPositionViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/crm/views.py", line 178, in get_queryset
return Position.objects.filter(opportunity=self.kwargs['opportunities_pk'])
KeyError: 'opportunities_pk'
view's OpportunityPositionViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/crm/views.py", line 178, in get_queryset
return Position.objects.filter(opportunity=self.kwargs['opportunities_pk'])
KeyError: 'opportunities_pk'
view's OpportunityPositionViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/crm/views.py", line 178, in get_queryset
return Position.objects.filter(opportunity=self.kwargs['opportunities_pk'])
KeyError: 'opportunities_pk'
view's OpportunityPositionViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/crm/views.py", line 178, in get_queryset
return Position.objects.filter(opportunity=self.kwargs['opportunities_pk'])
KeyError: 'opportunities_pk'
view's OpportunityPositionViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/crm/views.py", line 178, in get_queryset
return Position.objects.filter(opportunity=self.kwargs['opportunities_pk'])
KeyError: 'opportunities_pk'
view's PositionActivityViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/crm/views.py", line 225, in get_queryset
accounts_pk = self.kwargs['accounts_pk']
KeyError: 'accounts_pk'
view's PositionContactPersonViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/crm/views.py", line 514, in get_queryset
account_instance = get_object_or_404(Account, id=self.kwargs['accounts_pk'])
KeyError: 'accounts_pk'
view's PositionCandidateViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/crm/views.py", line 250, in get_queryset
position_candidates = PositionCandidate.objects.filter(position=self.kwargs['positions_pk'])
KeyError: 'positions_pk'
view's PositionCandidateViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/crm/views.py", line 250, in get_queryset
position_candidates = PositionCandidate.objects.filter(position=self.kwargs['positions_pk'])
KeyError: 'positions_pk'
view's PositionCandidateViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/crm/views.py", line 250, in get_queryset
position_candidates = PositionCandidate.objects.filter(position=self.kwargs['positions_pk'])
KeyError: 'positions_pk'
view's PositionCandidateViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/crm/views.py", line 250, in get_queryset
position_candidates = PositionCandidate.objects.filter(position=self.kwargs['positions_pk'])
KeyError: 'positions_pk'
view's PositionCandidateViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/crm/views.py", line 250, in get_queryset
position_candidates = PositionCandidate.objects.filter(position=self.kwargs['positions_pk'])
KeyError: 'positions_pk'
view's PositionCandidateActivityViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/crm/views.py", line 291, in get_queryset
accounts_pk = self.kwargs['accounts_pk']
KeyError: 'accounts_pk'
view's AccountOpportunityViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/crm/views.py", line 110, in get_queryset
return Opportunity.objects.filter(account=self.kwargs['accounts_pk'])
KeyError: 'accounts_pk'
view's AccountOpportunityViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/crm/views.py", line 110, in get_queryset
return Opportunity.objects.filter(account=self.kwargs['accounts_pk'])
KeyError: 'accounts_pk'
view's AccountOpportunityViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/crm/views.py", line 110, in get_queryset
return Opportunity.objects.filter(account=self.kwargs['accounts_pk'])
KeyError: 'accounts_pk'
view's AccountOpportunityViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/crm/views.py", line 110, in get_queryset
return Opportunity.objects.filter(account=self.kwargs['accounts_pk'])
KeyError: 'accounts_pk'
view's AccountOpportunityViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/crm/views.py", line 110, in get_queryset
return Opportunity.objects.filter(account=self.kwargs['accounts_pk'])
KeyError: 'accounts_pk'
view's AccountOpportunityViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/crm/views.py", line 110, in get_queryset
return Opportunity.objects.filter(account=self.kwargs['accounts_pk'])
KeyError: 'accounts_pk'
view's CandidatePositionAccountViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/crm/views.py", line 550, in get_queryset
position_candidates = PositionCandidate.objects.filter(candidate=self.kwargs['candidates_pk'])
KeyError: 'candidates_pk'
view's CandidateActivityViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/crm/views.py", line 359, in get_queryset
activity = Activity.objects.filter(candidate=self.kwargs['candidates_pk'])
KeyError: 'candidates_pk'
view's CandidatecvversionViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/candidates/views.py", line 165, in get_queryset
candidate = Candidate.objects.get(id = self.kwargs['candidates_pk'])
KeyError: 'candidates_pk'
view's CandidatecvversionViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/candidates/views.py", line 165, in get_queryset
candidate = Candidate.objects.get(id = self.kwargs['candidates_pk'])
KeyError: 'candidates_pk'
view's CandidatecvversionViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/candidates/views.py", line 165, in get_queryset
candidate = Candidate.objects.get(id = self.kwargs['candidates_pk'])
KeyError: 'candidates_pk'
view's CandidatecvversionViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/candidates/views.py", line 165, in get_queryset
candidate = Candidate.objects.get(id = self.kwargs['candidates_pk'])
KeyError: 'candidates_pk'
view's CandidatecvversionViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/candidates/views.py", line 165, in get_queryset
candidate = Candidate.objects.get(id = self.kwargs['candidates_pk'])
KeyError: 'candidates_pk'
view's CandidatecvversionViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/candidates/views.py", line 165, in get_queryset
candidate = Candidate.objects.get(id = self.kwargs['candidates_pk'])
KeyError: 'candidates_pk'
view's CandidatePositionOpportunityViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/crm/views.py", line 538, in get_queryset
position_candidates = PositionCandidate.objects.filter(candidate=self.kwargs['candidates_pk'])
KeyError: 'candidates_pk'
view's CandidateShareViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/candidates/views.py", line 297, in get_queryset
candidate_instance = get_object_or_404(Candidate, id=self.kwargs['candidates_pk'])
KeyError: 'candidates_pk'
view's CandidateShareViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/candidates/views.py", line 297, in get_queryset
candidate_instance = get_object_or_404(Candidate, id=self.kwargs['candidates_pk'])
KeyError: 'candidates_pk'
view's CandidateShareViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/candidates/views.py", line 297, in get_queryset
candidate_instance = get_object_or_404(Candidate, id=self.kwargs['candidates_pk'])
KeyError: 'candidates_pk'
view's CandidateShareViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/candidates/views.py", line 297, in get_queryset
candidate_instance = get_object_or_404(Candidate, id=self.kwargs['candidates_pk'])
KeyError: 'candidates_pk'
view's GroupPermissionViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/candidates/views.py", line 232, in get_queryset
queryset = GroupObjectPermission.objects.filter(object_pk=self.kwargs['candidates_pk'],
KeyError: 'candidates_pk'
view's GroupPermissionViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/candidates/views.py", line 232, in get_queryset
queryset = GroupObjectPermission.objects.filter(object_pk=self.kwargs['candidates_pk'],
KeyError: 'candidates_pk'
view's GroupPermissionViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/candidates/views.py", line 232, in get_queryset
queryset = GroupObjectPermission.objects.filter(object_pk=self.kwargs['candidates_pk'],
KeyError: 'candidates_pk'
view's GroupPermissionViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/candidates/views.py", line 232, in get_queryset
queryset = GroupObjectPermission.objects.filter(object_pk=self.kwargs['candidates_pk'],
KeyError: 'candidates_pk'
view's UserPermissionViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/candidates/views.py", line 281, in get_queryset
queryset = UserObjectPermission.objects.filter(object_pk=self.kwargs['candidates_pk'])
KeyError: 'candidates_pk'
view's UserPermissionViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/candidates/views.py", line 281, in get_queryset
queryset = UserObjectPermission.objects.filter(object_pk=self.kwargs['candidates_pk'])
KeyError: 'candidates_pk'
view's UserPermissionViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/candidates/views.py", line 281, in get_queryset
queryset = UserObjectPermission.objects.filter(object_pk=self.kwargs['candidates_pk'])
KeyError: 'candidates_pk'
view's UserPermissionViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/candidates/views.py", line 281, in get_queryset
queryset = UserObjectPermission.objects.filter(object_pk=self.kwargs['candidates_pk'])
KeyError: 'candidates_pk'
view's CandidatePositionPositionViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/crm/views.py", line 562, in get_queryset
position_candidates = PositionCandidate.objects.filter(candidate=self.kwargs['candidates_pk'])
KeyError: 'candidates_pk'
view's ContactPersonActivityViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/crm/views.py", line 441, in get_queryset
contactpersons_pk = self.kwargs['contactpersons_pk']
KeyError: 'contactpersons_pk'
view's OrganisationCustomizingAnonymViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 124, in get_queryset
organisation_id = self.kwargs['organisations_pk']
KeyError: 'organisations_pk'
view's OrganisationCustomizingAnonymViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 124, in get_queryset
organisation_id = self.kwargs['organisations_pk']
KeyError: 'organisations_pk'
view's OrganisationCustomizingAnonymViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 124, in get_queryset
organisation_id = self.kwargs['organisations_pk']
KeyError: 'organisations_pk'
view's OrganisationCustomizingAnonymViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 124, in get_queryset
organisation_id = self.kwargs['organisations_pk']
KeyError: 'organisations_pk'
view's OrganisationCustomizingLocalizationViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 170, in get_queryset
organisation_id = self.kwargs['organisations_pk']
KeyError: 'organisations_pk'
view's OrganisationCustomizingLocalizationViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 170, in get_queryset
organisation_id = self.kwargs['organisations_pk']
KeyError: 'organisations_pk'
view's OrganisationCustomizingLocalizationViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 170, in get_queryset
organisation_id = self.kwargs['organisations_pk']
KeyError: 'organisations_pk'
view's OrganisationCustomizingLocalizationViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 170, in get_queryset
organisation_id = self.kwargs['organisations_pk']
KeyError: 'organisations_pk'
view's OrganisationCustomizingViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 67, in get_queryset
queryset = OrganisationCustomizing.objects.filter(organisation=self.kwargs['organisations_pk'])
KeyError: 'organisations_pk'
view's OrganisationCustomizingViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 67, in get_queryset
queryset = OrganisationCustomizing.objects.filter(organisation=self.kwargs['organisations_pk'])
KeyError: 'organisations_pk'
view's OrganisationCustomizingViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 67, in get_queryset
queryset = OrganisationCustomizing.objects.filter(organisation=self.kwargs['organisations_pk'])
KeyError: 'organisations_pk'
view's OrganisationCustomizingViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 67, in get_queryset
queryset = OrganisationCustomizing.objects.filter(organisation=self.kwargs['organisations_pk'])
KeyError: 'organisations_pk'
view's TeamCustomizingAnonymViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 395, in get_queryset
teams_pk = self.kwargs['teams_pk']
KeyError: 'teams_pk'
view's TeamCustomizingAnonymViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 395, in get_queryset
teams_pk = self.kwargs['teams_pk']
KeyError: 'teams_pk'
view's TeamCustomizingAnonymViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 395, in get_queryset
teams_pk = self.kwargs['teams_pk']
KeyError: 'teams_pk'
view's TeamCustomizingAnonymViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 395, in get_queryset
teams_pk = self.kwargs['teams_pk']
KeyError: 'teams_pk'
view's TeamCustomizingLocalizationViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 439, in get_queryset
teams_pk = self.kwargs['teams_pk']
KeyError: 'teams_pk'
view's TeamCustomizingLocalizationViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 439, in get_queryset
teams_pk = self.kwargs['teams_pk']
KeyError: 'teams_pk'
view's TeamCustomizingLocalizationViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 439, in get_queryset
teams_pk = self.kwargs['teams_pk']
KeyError: 'teams_pk'
view's TeamCustomizingLocalizationViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 439, in get_queryset
teams_pk = self.kwargs['teams_pk']
KeyError: 'teams_pk'
view's TeamCustomizingViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 356, in get_queryset
return TeamCustomizing.objects.filter(team=self.kwargs['teams_pk'])
KeyError: 'teams_pk'
view's TeamCustomizingViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 356, in get_queryset
return TeamCustomizing.objects.filter(team=self.kwargs['teams_pk'])
KeyError: 'teams_pk'
view's TeamCustomizingViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 356, in get_queryset
return TeamCustomizing.objects.filter(team=self.kwargs['teams_pk'])
KeyError: 'teams_pk'
view's TeamCustomizingViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 356, in get_queryset
return TeamCustomizing.objects.filter(team=self.kwargs['teams_pk'])
KeyError: 'teams_pk'
view's TeamMemberViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/organisations/views.py", line 143, in get_queryset
return TeamMember.objects.filter(group=self.kwargs['teams_pk'])
KeyError: 'teams_pk'
view's TeamMemberViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/organisations/views.py", line 143, in get_queryset
return TeamMember.objects.filter(group=self.kwargs['teams_pk'])
KeyError: 'teams_pk'
view's TeamMemberViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/organisations/views.py", line 143, in get_queryset
return TeamMember.objects.filter(group=self.kwargs['teams_pk'])
KeyError: 'teams_pk'
view's TeamMemberViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/organisations/views.py", line 143, in get_queryset
return TeamMember.objects.filter(group=self.kwargs['teams_pk'])
KeyError: 'teams_pk'
view's UserCustomizingAnonymViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 260, in get_queryset
corporate_user_id = self.kwargs['corporateuser_pk']
KeyError: 'corporateuser_pk'
view's UserCustomizingAnonymViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 260, in get_queryset
corporate_user_id = self.kwargs['corporateuser_pk']
KeyError: 'corporateuser_pk'
view's UserCustomizingAnonymViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 260, in get_queryset
corporate_user_id = self.kwargs['corporateuser_pk']
KeyError: 'corporateuser_pk'
view's UserCustomizingAnonymViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 260, in get_queryset
corporate_user_id = self.kwargs['corporateuser_pk']
KeyError: 'corporateuser_pk'
view's UserCustomizingLocalizationViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 307, in get_queryset
corporate_user_id = self.kwargs['corporateuser_pk']
KeyError: 'corporateuser_pk'
view's UserCustomizingLocalizationViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 307, in get_queryset
corporate_user_id = self.kwargs['corporateuser_pk']
KeyError: 'corporateuser_pk'
view's UserCustomizingLocalizationViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 307, in get_queryset
corporate_user_id = self.kwargs['corporateuser_pk']
KeyError: 'corporateuser_pk'
view's UserCustomizingLocalizationViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 307, in get_queryset
corporate_user_id = self.kwargs['corporateuser_pk']
KeyError: 'corporateuser_pk'
view's UserCustomizingViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 201, in get_queryset
queryset = UserCustomizing.objects.filter(user=self.kwargs['corporateuser_pk'])
KeyError: 'corporateuser_pk'
view's UserCustomizingViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 201, in get_queryset
queryset = UserCustomizing.objects.filter(user=self.kwargs['corporateuser_pk'])
KeyError: 'corporateuser_pk'
view's UserCustomizingViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 201, in get_queryset
queryset = UserCustomizing.objects.filter(user=self.kwargs['corporateuser_pk'])
KeyError: 'corporateuser_pk'
view's UserCustomizingViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/customizings/views.py", line 201, in get_queryset
queryset = UserCustomizing.objects.filter(user=self.kwargs['corporateuser_pk'])
KeyError: 'corporateuser_pk'
view's GDPRViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/gdpr/views.py", line 29, in get_queryset
corporateuser_instance = get_object_or_404(CorporateUser, id=self.kwargs["corporateuser_pk"])
KeyError: 'corporateuser_pk'
view's GDPRViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/gdpr/views.py", line 29, in get_queryset
corporateuser_instance = get_object_or_404(CorporateUser, id=self.kwargs["corporateuser_pk"])
KeyError: 'corporateuser_pk'
view's GDPRViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/gdpr/views.py", line 29, in get_queryset
corporateuser_instance = get_object_or_404(CorporateUser, id=self.kwargs["corporateuser_pk"])
KeyError: 'corporateuser_pk'
0.0.0.0:8000
0.0.0.0:8000
0.0.0.0:8000
0.0.0.0:8000
/usr/local/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'vitapio.crm.views.AccountActivityViewSet'> is not compatible with schema generation
"{} is not compatible with schema generation".format(view.__class__)
/usr/local/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'vitapio.crm.views.AccountContactPersonViewSet'> is not compatible with schema generation
"{} is not compatible with schema generation".format(view.__class__)
/usr/local/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'vitapio.crm.views.AccountOpportunityViewSet'> is not compatible with schema generation
"{} is not compatible with schema generation".format(view.__class__)
/usr/local/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'vitapio.crm.views.OpportunityContactPersonViewSet'> is not compatible with schema generation
"{} is not compatible with schema generation".format(view.__class__)
/usr/local/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'vitapio.crm.views.OpportunityPositionViewSet'> is not compatible with schema generation
"{} is not compatible with schema generation".format(view.__class__)
/usr/local/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'vitapio.crm.views.PositionActivityViewSet'> is not compatible with schema generation
"{} is not compatible with schema generation".format(view.__class__)
/usr/local/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'vitapio.crm.views.PositionContactPersonViewSet'> is not compatible with schema generation
"{} is not compatible with schema generation".format(view.__class__)
/usr/local/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'vitapio.crm.views.PositionCandidateViewSet'> is not compatible with schema generation
"{} is not compatible with schema generation".format(view.__class__)
/usr/local/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'vitapio.crm.views.PositionCandidateActivityViewSet'> is not compatible with schema generation
"{} is not compatible with schema generation".format(view.__class__)
/usr/local/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'vitapio.crm.views.CandidatePositionAccountViewSet'> is not compatible with schema generation
"{} is not compatible with schema generation".format(view.__class__)
/usr/local/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'vitapio.crm.views.CandidateActivityViewSet'> is not compatible with schema generation
"{} is not compatible with schema generation".format(view.__class__)
/usr/local/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'vitapio.candidates.views.CandidatecvversionViewSet'> is not compatible with schema generation
"{} is not compatible with schema generation".format(view.__class__)
/usr/local/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'vitapio.crm.views.CandidatePositionOpportunityViewSet'> is not compatible with schema generation
"{} is not compatible with schema generation".format(view.__class__)
/usr/local/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'vitapio.candidates.views.CandidateShareViewSet'> is not compatible with schema generation
"{} is not compatible with schema generation".format(view.__class__)
/usr/local/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'vitapio.candidates.views.GroupPermissionViewSet'> is not compatible with schema generation
"{} is not compatible with schema generation".format(view.__class__)
/usr/local/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'vitapio.candidates.views.UserPermissionViewSet'> is not compatible with schema generation
"{} is not compatible with schema generation".format(view.__class__)
/usr/local/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'vitapio.crm.views.CandidatePositionPositionViewSet'> is not compatible with schema generation
"{} is not compatible with schema generation".format(view.__class__)
/usr/local/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'vitapio.crm.views.ContactPersonActivityViewSet'> is not compatible with schema generation
"{} is not compatible with schema generation".format(view.__class__)
/usr/local/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'vitapio.customizings.views.OrganisationCustomizingViewSet'> is not compatible with schema generation
"{} is not compatible with schema generation".format(view.__class__)
/usr/local/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'vitapio.customizings.views.OrganisationCustomizingAnonymViewSet'> is not compatible with schema generation
"{} is not compatible with schema generation".format(view.__class__)
/usr/local/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'vitapio.customizings.views.OrganisationCustomizingLocalizationViewSet'> is not compatible with schema generation
"{} is not compatible with schema generation".format(view.__class__)
/usr/local/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'vitapio.candidates.views_search.CandidateElasticSearchViewSet'> is not compatible with schema generation
"{} is not compatible with schema generation".format(view.__class__)
view's CandidateElasticSearchViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/usr/local/lib/python3.6/site-packages/rest_framework/generics.py", line 110, in get_serializer
serializer_class = self.get_serializer_class()
File "/usr/local/lib/python3.6/site-packages/rest_framework/generics.py", line 127, in get_serializer_class
% self.__class__.__name__
AssertionError: 'CandidateElasticSearchViewSet' should either include a `serializer_class` attribute, or override the `get_serializer_class()` method.
/usr/local/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'vitapio.crm.views_search.PositionElasticSearchViewSet'> is not compatible with schema generation
"{} is not compatible with schema generation".format(view.__class__)
view's PositionElasticSearchViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/usr/local/lib/python3.6/site-packages/rest_framework/generics.py", line 110, in get_serializer
serializer_class = self.get_serializer_class()
File "/usr/local/lib/python3.6/site-packages/rest_framework/generics.py", line 127, in get_serializer_class
% self.__class__.__name__
AssertionError: 'PositionElasticSearchViewSet' should either include a `serializer_class` attribute, or override the `get_serializer_class()` method.
/usr/local/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'vitapio.customizings.views.TeamCustomizingViewSet'> is not compatible with schema generation
"{} is not compatible with schema generation".format(view.__class__)
/usr/local/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'vitapio.customizings.views.TeamCustomizingAnonymViewSet'> is not compatible with schema generation
"{} is not compatible with schema generation".format(view.__class__)
/usr/local/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'vitapio.customizings.views.TeamCustomizingLocalizationViewSet'> is not compatible with schema generation
"{} is not compatible with schema generation".format(view.__class__)
/usr/local/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'vitapio.organisations.views.TeamMemberViewSet'> is not compatible with schema generation
"{} is not compatible with schema generation".format(view.__class__)
/usr/local/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'vitapio.customizings.views.UserCustomizingViewSet'> is not compatible with schema generation
"{} is not compatible with schema generation".format(view.__class__)
/usr/local/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'vitapio.customizings.views.UserCustomizingAnonymViewSet'> is not compatible with schema generation
"{} is not compatible with schema generation".format(view.__class__)
/usr/local/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'vitapio.customizings.views.UserCustomizingLocalizationViewSet'> is not compatible with schema generation
"{} is not compatible with schema generation".format(view.__class__)
/usr/local/lib/python3.6/site-packages/django_filters/rest_framework/backends.py:128: UserWarning: <class 'vitapio.gdpr.views.GDPRViewSet'> is not compatible with schema generation
"{} is not compatible with schema generation".format(view.__class__)
INFO "GET /api/v1/api-docs/?format=openapi HTTP/1.1" 200 322821
# Core
pytz==2018.6
Django==2.1.7
django-configurations==2.1
gunicorn==19.9.0
newrelic==4.4.1.104
# For the persistence stores
psycopg2-binary==2.7.5
dj-database-url==0.5.0
# Model Tools
django-model-utils==3.1.2
django_unique_upload==0.2.1
django-countries==5.3.3
django-timezone-utils==0.13
# Rest apis
djangorestframework==3.9.1
Markdown==3.0.1
django-filter==2.0.0
# Developer Tools
ipdb==0.11
ipython==7.3.0
mkdocs==1.0.4
mkdocs-material==3.2.0
flake8==3.6.0
# Testing
mock==2.0.0
factory-boy==2.11.1
django-nose==1.4.6
nose-progressive==1.5.1
coverage==4.5.1
# Static and Media Storage
django-storages==1.7.1
boto3==1.9.30
# Automatic Schema Generation Support
coreapi==2.3.3
pyyaml==3.13
drf-yasg==1.14.0
flex==6.13.2
swagger_spec_validator==2.4.1
click==6.5
# Django Guardian and Groups Manager
django-guardian==1.4.9
django-groups-manager==0.6.2
#cors headers
django-cors-headers==2.5.0
# nested router
drf-nested-routers==0.91
# django-bootstrap 3
django-bootstrap3==11.0.0
# Elastic Search
elasticsearch-dsl==6.3.1
# Password Reset Mechanism
django-rest-passwordreset==1.0.0a1
# History Mechanism
django-simple-history==2.5.1
# Enable CORS
# django-cors-headers==2.4.0
# Enable Image Upload
Pillow==5.4.1
# Requests for External Services
requests ==2.21.0
Most of the viewsets used are nested by using drf-nested-router.
Your views have behaviour which varies dynamically based on request parameters (using self.kwargs in their get_queryset, get_serializer, etc methods). drf-yasg is unable to handle this because no requests are actually made to the inspected views. You can follow the advice in the exception message, for example:
def get_queryset(self):
if getattr(self, 'swagger_fake_view', False):
# queryset just for schema generation metadata
return Activity.objects.none()
[...]
what would 'swagger_fake_view' mean here? does drf-yasg set that attribute?
Yes. It means that the view instance was artificially created as part of a swagger schema request.
Almost all of the NotCompatible Issues are away. However, some still remain.
INFO "GET /api/v1/api-docs/ HTTP/1.1" 200 2259
view's AccountActivityViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
return view_method()
File "/code/vitapio/crm/views.py", line 442, in get_queryset
activity = Activity.objects.filter(account=self.kwargs['accounts_pk'])
KeyError: 'accounts_pk'
view's AccountContactPersonViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/django/db/models/fields/__init__.py", line 2325, in to_python
return uuid.UUID(value)
File "/usr/local/lib/python3.6/uuid.py", line 137, in __init__
hex = hex.replace('urn:', '').replace('uuid:', '')
AttributeError: 'AnonymousUser' object has no attribute 'replace'
The solution is the same. Guard the appropriate methods with the fake view check.
i cannot write in all the api beacuse most of my apis contain self.request.user . please suggest me with some workaround.
Catch the exception with a custom SwaggerAutoSchema or make your views
extend a base class to factor out common logic (which would be a good
practice in any case).
On Fri, 17 May 2019 at 12:19, Gouri Javed notifications@github.com wrote:
i cannot write in all the api beacuse most of my apis contain
self.request.user . please suggest me with some workaround[—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/axnsan12/drf-yasg/issues/333?email_source=notifications&email_token=ABQWLAZDHTAUL3TK5C6NS4LPVZ2DFA5CNFSM4G755QL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVUHPQQ#issuecomment-493385666,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABQWLA576OFOLDSM4SRH5TDPVZ2DFANCNFSM4G755QLQ
.
Cristian VÃŽJDEA
+40 720 527 093 <+40+720+527+093> | [email protected]
Catch the exception with a custom
SwaggerAutoSchemaor make your views
extend a base class to factor out common logic (which would be a good
practice in any case).
@axnsan12 could you provide some insights on how to adjust/disable the view inspection with SwaggerAutoSchema? In most of the views in my project I'm returning querysets depending on request.user (e.g. things that this particular user has created) and protecting each view with a check seems like too much. I'd prefer not to call the view method.
At least for us, calling the super method when the method is called by the doc generation is enough: we simply make sure that the queryset and serializer_class are set to something regardless of us overriding the respective get methods. We do this like this:
def openapi_ready(f):
"""
The openapi generation needs to be able to call some methods on the viewset
without a user on the request (or AnonymousUser being on it). drf_yasg sets
the swagger_fake_view attr on the view when running these methods, so we can
check for that and call the super method if it's present. This does mean
that the super method output still has to makes sense for the docs you're trying
to generate.
"""
@functools.wraps(f)
def wrapped(self, *args, **kwargs):
if getattr(self, "swagger_fake_view", False):
# this looks like utter voodoo but it's simply getting the super
# class, dynamically getattring the method from it and calling that
# method with the args passed to f
return getattr(super(self.__class__, self), f.__name__)(
*args, **kwargs
)
else:
return f(self, *args, **kwargs)
return wrapped
You can then wrap any method that doesn't work without stuff being on the request in that decorator.
Most helpful comment
Your views have behaviour which varies dynamically based on request parameters (using
self.kwargsin theirget_queryset,get_serializer, etc methods).drf-yasgis unable to handle this because no requests are actually made to the inspected views. You can follow the advice in the exception message, for example: