This setup is confusing, even with the comment.  `create_random_account` seems to be called only if `settings.GENERATE_RANDOM_USER_CREDENTIALS` is defined.

In your view, you call `create_account` directly and provide the `post_override` function.  Why do you need to make any changes to `create_random_account`?