-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Found this corner case which is not collected by endpoints toolwindow (and Django Structure as well)
#urls.py
ENROLLMENTS_VIEW = EntitlementEnrollmentViewSet.as_view({
'post': 'create',
'delete': 'destroy',
})
app_name = 'v1'
urlpatterns = [
path('', include(router.urls)),
re_path(
fr'entitlements/(?P<uuid>{EntitlementViewSet.ENTITLEMENT_UUID4_REGEX})/enrollments$',
ENROLLMENTS_VIEW, # <------------ THIS ONE IS NOT RECOGNIZED, but regognized if specified right here without variable
name='enrollments'
),
path(
'subscriptions/entitlements/revoke',
SubscriptionsRevokeVerifiedAccessView.as_view(),
name='revoke_subscriptions_verified_access'
)
]#views.py
class EntitlementEnrollmentViewSet(viewsets.GenericViewSet):
def create(self, request, uuid):
pass
def destroy(self, request, uuid):
passMetadata
Metadata
Assignees
Labels
No labels