Note that this won’t prevent from setting a user as being a superuser from django admin interface. If you want to completely make it impossible to create two superusers, you can add the constraint on the database level directly . Show activity on this post. You can write a script to check number of superuser.