Modify Django default User to use email as unique identifier
Project description
Django Custom Email User
Replacing the username with the email as the unique identifier is so common, that I simply decided to create a package to prevent this tedium again.
Used to replace default Django User model with email, instead of the username, as the unique identifer. The username is changed to optional and will not be requested as part of createsuperuser.
The Django admin panel is customised to accommodate these changes, along with the User forms custom_email_user.forms.CustomUserCreationForm and custom_email_user.forms.CustomUserChangeForm
Simply add custom_email_user to your installed apps, configure the AUTH_USER_MODEL, and run the migrations
INSTALLED_APPS = [
...
'custom_email_user'
]
AUTH_USER_MODEL = 'custom_email_user.User'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for django_custom_email_user-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d8f595f7a1fc2691a3a2598054829743184bec8e9508bfcfe05626a8f2ac8a4 |
|
MD5 | acc2ae791a70dd2211325a9120e5e47e |
|
BLAKE2b-256 | 5de80a435c44215baf9834aba2e736c1d11e1f5a2c74c5f6173f063425ebc1a9 |