[Django]-Why is there both a create_user and a _create_user method in django.contrib.auth.models.UserManager

2👍

I think I’ve found out the answer on my own. The class also has a create_superuser method that calls _create_user as well, but with different arguments. The use of _create_user thus spares us from having to write the same functionality twice.

👤Sahand

Leave a comment