Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!


Project description


By default, Django custom User model suffers from the following:

  • If you derive from django.contrib.auth.models.base_user.AbstractBaseUser you don’t get Django Admin integration, permissions and 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.


pip install django_minimal_abstract_user


# yourproject/accounts/

from django_minimal_abstract_user import AbstractUser

class User(AbstractUser):
        full_name = models.CharField(max_length=60)
        email = models.EmailField(_('email address'), unique=True)

        USERNAME_FIELD = 'email'
        REQUIRED_FIELDS = ['full_name']  # Optional

# yourproject/

AUTH_USER_MODEL = 'accounts.User'

Project details

Release history Release notifications

This version
History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-minimal-abstract-user-0.0.2.tar.gz (1.8 kB) Copy SHA256 hash SHA256 Source None Jul 14, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page