MCPcopy Index your code
hub / github.com/Flagsmith/flagsmith / get

Method get

api/users/views.py:77–93  ·  view source on GitHub ↗
(self, request)

Source from the content-addressed store, hash-verified

75
76class AdminInitView(View):
77 def get(self, request): # type: ignore[no-untyped-def]
78 if should_skip_create_initial_superuser():
79 return JsonResponse(
80 {
81 "adminUserCreated": False,
82 "message": "FAILED TO INIT ADMIN USER. USER(S) ALREADY EXIST IN SYSTEM.",
83 },
84 status=status.HTTP_400_BAD_REQUEST,
85 )
86 response = create_initial_superuser()
87 return JsonResponse(
88 {
89 "adminUserCreated": True,
90 "passwordResetUrl": response.password_reset_url,
91 },
92 status=status.HTTP_201_CREATED,
93 )
94
95
96class FFAdminUserViewSet(mixins.ListModelMixin, viewsets.GenericViewSet): # type: ignore[type-arg]

Callers 15

toPrimitiveRefFunction · 0.45
index.jsFile · 0.45
dev-routes.jsFile · 0.45
format.test.tsFile · 0.45
HOCClass · 0.45
account-store.jsFile · 0.45
project-store.jsFile · 0.45
createFlagFunction · 0.45
identity-store.jsFile · 0.45