[Answer]-Accessing a Form's cleaned data from a signals callback?

1👍

The form instance is not passed to this signal so I am afraid that you have to validate the data again:

def user_registered_callback(sender, user, request, **kwargs):

    form = ExRegistrationForm(request.POST)
    form.full_clean()

    profile = ExUserProfile(user=user)
    profile.is_human = form.cleaned_data['is_human']
    profile.save()

Leave a comment