MCPcopy
hub / github.com/django/django / form_valid

Method form_valid

django/contrib/auth/views.py:368–373  ·  view source on GitHub ↗
(self, form)

Source from the content-addressed store, hash-verified

366 return kwargs
367
368 def form_valid(self, form):
369 form.save()
370 # Updating the password logs out all other sessions for the user
371 # except the current one.
372 update_session_auth_hash(self.request, form.user)
373 return super().form_valid(form)
374
375
376@method_decorator(login_required, name="dispatch")

Callers

nothing calls this directly

Calls 3

update_session_auth_hashFunction · 0.90
saveMethod · 0.45
form_validMethod · 0.45

Tested by

no test coverage detected