{ "info": { "author": "Valery Melou", "author_email": "valerymelou@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: Django :: 1.11", "Framework :: Django :: 2.0", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "=============================\nDjango Simple User\n=============================\n\n.. image:: https://pyup.io/repos/github/valerymelou/django-simple-user/shield.svg\n :target: https://pyup.io/repos/github/valerymelou/django-simple-user/\n :alt: Updates\n\n.. image:: https://badge.fury.io/py/django-simple-user.svg\n :target: https://badge.fury.io/py/django-simple-user\n\n.. image:: https://travis-ci.org/valerymelou/django-simple-user.svg?branch=master\n :target: https://travis-ci.org/valerymelou/django-simple-user\n\n.. image:: https://codecov.io/gh/valerymelou/django-simple-user/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/valerymelou/django-simple-user\n\nProvides a simple abstract User model without first and last name fields.\n\nDocumentation\n-------------\n\nThe full documentation is available at https://django-simple-user.readthedocs.io.\n\nQuickstart\n----------\n\nInstall Django Simple User::\n\n pip install django-simple-user\n\nFeatures\n--------\n\n* Abstract User model without the fields ``first_name`` and ``last_name``\n* Abstract User model without the fields ``first_name``, ``last_name`` and ``email``\n* Abstract User model without the fields ``first_name``, ``last_name`` and ``username``\n\nUsage\n-----\n\nIf you are like me, you might have found yourself extending ``django.contrib.auth.base_user.AbstractBaseUser`` just to remove the ``first_name`` and ``last_name`` fields from your final User model. I was tired of doing that and I created this package. It defines an abstract User model without those fields so that you can just inherit from it to create your User model. Let's suppose you have a ``users`` app with a ``models.py`` file containing the following:\n\n::\n\n from simple_user.models import AbstractUser\n\n\n class User(AbstractUser):\n pass\n\nThen in your settings file:\n\n::\n\n AUTH_USER_MODEL = 'users.User'\n\nThis will create a User model with all the fields that happen to exists in the default Django's User model except ``first_name`` and ``last_name`` and use it for authentication in your app.\n\nBonuses\n-------\n\nThere are some cases where you only want ``username`` or ``email`` but not both fields in your model. Django Simple User has got you covered. You can use ``SimpleUserWithUsername`` or ``SimpleUserWithEmail`` to achieve each scenario.\n\nFor a User model with ``username`` as identifying field but without ``first_name``, ``last_name`` and ``email`` do:\n\n::\n\n from simple_user.models import SimpleUserWithUsername\n\n\n class User(SimpleUserWithUsername):\n pass\n\nFor a User model with ``email`` as identifying field but without ``first_name``, ``last_name`` and ``username`` do:\n\n::\n\n from simple_user.models import SimpleUserWithUsername\n\n\n class User(SimpleUserWithEmail):\n pass\n\nNote\n----\n\nAlways remember to set your extended User model as the authentication User model by setting ``AUTH_USER_MODEL`` in your settings file.\n\nRunning Tests\n-------------\n\nDoes the code actually work?\n\n::\n\n source /bin/activate\n (myenv) $ pip install tox\n (myenv) $ tox\n\nCredits\n-------\n\nTools used in rendering this package:\n\n* Cookiecutter_\n* `cookiecutter-djangopackage`_\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage\n\n\n\n\nHistory\n-------\n\n0.1.0 (2018-05-31)\n++++++++++++++++++\n\n* First release on PyPI.\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/valerymelou/django-simple-user", "keywords": "django-simple-user", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "django-simple-user", "package_url": "https://pypi.org/project/django-simple-user/", "platform": "", "project_url": "https://pypi.org/project/django-simple-user/", "project_urls": { "Homepage": "https://github.com/valerymelou/django-simple-user" }, "release_url": "https://pypi.org/project/django-simple-user/0.1.2/", "requires_dist": null, "requires_python": "", "summary": "Provides an abstract base User model without first and last name fields.", "version": "0.1.2" }, "last_serial": 3945054, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "7566c15a6a988c9bfe977be32d03a1ea", "sha256": "8e184da44758c02fddd33b7bca5c5059cc298ac82bc8de12249848f83c011a9c" }, "downloads": -1, "filename": "django_simple_user-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7566c15a6a988c9bfe977be32d03a1ea", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 4627, "upload_time": "2018-06-05T19:48:15", "url": "https://files.pythonhosted.org/packages/d0/c6/839f8d5cd731cdccd046ad6b2f84f594fd75a35dd7a28e7ee82cce59e88a/django_simple_user-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e8322b64063a178a21c84a05edade8ef", "sha256": "57b7700d5d97db05ae7b759eb89a8f615197603aadf7eb3dc07864fe3eaf85c9" }, "downloads": -1, "filename": "django-simple-user-0.1.1.tar.gz", "has_sig": false, "md5_digest": "e8322b64063a178a21c84a05edade8ef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6812, "upload_time": "2018-06-05T19:48:06", "url": "https://files.pythonhosted.org/packages/2b/15/1cb192bfb45c59b6404cf63832a3e3fc3ac03acb875e8d62ea428edf97fb/django-simple-user-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "bb98faa3950f7318beb790b5266631eb", "sha256": "e4b81d7c60fb2325d9918ac49c2e30843ea5b8978cf93ba296f7201422a9fc06" }, "downloads": -1, "filename": "django_simple_user-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "bb98faa3950f7318beb790b5266631eb", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 5529, "upload_time": "2018-06-09T10:42:02", "url": "https://files.pythonhosted.org/packages/1a/74/b53fbc2a3e28b110f3e1472316892af4be38350bfe233cf1ad8e9540bafe/django_simple_user-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f2f08f756f567471517d86dc232500e0", "sha256": "a9dbbb725b1080723a0cd78fef5ea8ad327be3666518aa02713d64f69ce9558c" }, "downloads": -1, "filename": "django-simple-user-0.1.2.tar.gz", "has_sig": false, "md5_digest": "f2f08f756f567471517d86dc232500e0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7418, "upload_time": "2018-06-09T10:41:58", "url": "https://files.pythonhosted.org/packages/c5/43/72295c70c274313cd5509056dc292d29868c9de56cf35f872c4c11d72aeb/django-simple-user-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bb98faa3950f7318beb790b5266631eb", "sha256": "e4b81d7c60fb2325d9918ac49c2e30843ea5b8978cf93ba296f7201422a9fc06" }, "downloads": -1, "filename": "django_simple_user-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "bb98faa3950f7318beb790b5266631eb", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 5529, "upload_time": "2018-06-09T10:42:02", "url": "https://files.pythonhosted.org/packages/1a/74/b53fbc2a3e28b110f3e1472316892af4be38350bfe233cf1ad8e9540bafe/django_simple_user-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f2f08f756f567471517d86dc232500e0", "sha256": "a9dbbb725b1080723a0cd78fef5ea8ad327be3666518aa02713d64f69ce9558c" }, "downloads": -1, "filename": "django-simple-user-0.1.2.tar.gz", "has_sig": false, "md5_digest": "f2f08f756f567471517d86dc232500e0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7418, "upload_time": "2018-06-09T10:41:58", "url": "https://files.pythonhosted.org/packages/c5/43/72295c70c274313cd5509056dc292d29868c9de56cf35f872c4c11d72aeb/django-simple-user-0.1.2.tar.gz" } ] }