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

Method form_valid

api/users/views.py:65–73  ·  view source on GitHub ↗
(self, form)

Source from the content-addressed store, hash-verified

63 raise Http404("CAN NOT INIT CONFIGURATION. USER(S) ALREADY EXIST IN SYSTEM.")
64
65 def form_valid(self, form): # type: ignore[no-untyped-def]
66 form.update_site()
67 password_reset_url = form.create_admin().password_reset_url
68 return JsonResponse(
69 {
70 "message": "INSTALLATION CONFIGURED SUCCESSFULLY",
71 "passwordResetUrl": password_reset_url,
72 }
73 )
74
75
76class AdminInitView(View):

Callers

nothing calls this directly

Calls 2

update_siteMethod · 0.80
create_adminMethod · 0.80

Tested by

no test coverage detected