This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

django-minimal-abstract-user

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 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

# yourproject/accounts/models.py

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/settings.py

AUTH_USER_MODEL = 'accounts.User'
Release History

Release History

0.0.2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-minimal-abstract-user-0.0.2.tar.gz (1.8 kB) Copy SHA256 Checksum SHA256 Source Jul 14, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting