UNKNOWN
Project description
django-minimal-abstract-user
Typically, Django pluggable User models suffer from the following:
If you derive from django.contrib.auth.models.base_user.AbstractBaseUser, you do not get Django Admin integration, permissions and manage.py createsuperuser (a real deal breaker for simpler projects!)
If you derive from django.contrib.auth.models.AbstractUser, you get hard-coded username, first_name, last_name and email (what if you don’t need to separate first and last name, and don’t need usernames at all?)
This library provides a better AbstractUser class which works around both problems and provides a minimal abstract base User model that doesn’t have any extra fields but supports permissions and Django Admin.
Installation
pip install django_minimal_abstract_user
Usage
In yourproject/accounts/models.py:
from django_minimal_abstract_user import AbstractUser
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-minimal-abstract-user-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f53e44b17677dc8eb865bab83a0fc453ba09117a3e6b28b325b4d4c3d95f94ed |
|
MD5 | a1a53ffdc5549856bab178612f10fd58 |
|
BLAKE2b-256 | cba9ab8334aad61723edc9e84aca8dbd503361c10590ba675ff886d4de57b260 |