{ "info": { "author": "David Bennett", "author_email": "david@dbinit.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities" ], "description": "=====================\nDjango-User-Extension\n=====================\n\n\nDescription\n===========\n\nThis is a simple app that that helps you subclass the Django User model. It\nmakes use of the InheritanceQuerySet provided by `Django-Model-Utils`_ to make\nit possible for you to create as many subclasses of the User model as you like.\n\nIt's usually recommended to create a \"user profile\" model when you want to\nstore additional information about each user. Unfortunately, this doesn't work\nat all if you need multiple user models with different information in each.\nIt's also a bit of a pain to make sure a profile exists and ``get_profile()``\ncan sometimes introduce extra database queries.\n\n.. _Django-Model-Utils: http://bitbucket.org/carljm/django-model-utils/\n\n\nRequirements and Installation\n=============================\n\nDjango-User-Extension requires:\n\n - Django\n - Django-Model-Utils\n - setuptools or preferably `distribute `_\n\nInstallation is as simple as::\n\n pip install django-user-extension\n\n\nSource\n------\nYou can install the latest development version from the `hg repository`_ with::\n\n pip install -e hg+http://code.db-init.com/django-user-extension\n\nOr from a tarball_ with::\n\n pip install django-user-extension==dev\n\n.. _hg repository: http://bitbucket.org/dbinit/django-user-extension/\n.. _tarball: http://bitbucket.org/dbinit/django-user-extension/get/tip.gz#egg=django-user-extension-dev\n\n\nUsage\n=====\n\nDjango-User-Extension provides a modified authentication ModelBackend class\nthat resolves the correct User subclass. This will ensure that ``request.user``\nrepresents your subclass model. Simply add this to your ``settings.py``::\n\n AUTHENTICATION_BACKENDS = ('user_extension.backends.SubUserModelBackend',)\n\nAlso provided is a modified admin UserAdmin class that will allow you to easily\nadd your subclasses to the Django admin. If you try to use the default\nUserAdmin you'll get an error message when add any of your custom fields to\n``fieldsets``. Make sure you also add any required fields to ``add_fieldsets``.\nYou can use it like this in your ``admin.py``::\n\n from user_extension.admin import SubUserAdmin\n\n class CustomUserAdmin(SubUserAdmin):\n fieldsets = SubUserAdmin.fieldsets[:2] + (\n (None, {\n 'fields': ('picture',)\n }),\n ) + SubUserAdmin.fieldsets[2:]\n add_fieldsets = SubUserAdmin.add_fieldsets + (\n (None, {\n 'fields': ('picture',)\n }),\n )", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://bitbucket.org/dbinit/django-user-extension/", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-user-extension", "package_url": "https://pypi.org/project/django-user-extension/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-user-extension/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://bitbucket.org/dbinit/django-user-extension/" }, "release_url": "https://pypi.org/project/django-user-extension/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "Subclass the Django User model to your heart's delight.", "version": "1.0.0" }, "last_serial": 354879, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "a9b13d3cc6d98cc32ae1280a8762a135", "sha256": "d24f43ac03db6f798c85e36b2b9218f5d0b21d9b4ccb44ab734a163671bbec2f" }, "downloads": -1, "filename": "django-user-extension-1.0.0.tar.gz", "has_sig": false, "md5_digest": "a9b13d3cc6d98cc32ae1280a8762a135", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3109, "upload_time": "2011-12-18T19:47:24", "url": "https://files.pythonhosted.org/packages/ea/38/40d314288ef67ad2de6e047680343c58c2309291f99fb5c68530d1e0ad29/django-user-extension-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a9b13d3cc6d98cc32ae1280a8762a135", "sha256": "d24f43ac03db6f798c85e36b2b9218f5d0b21d9b4ccb44ab734a163671bbec2f" }, "downloads": -1, "filename": "django-user-extension-1.0.0.tar.gz", "has_sig": false, "md5_digest": "a9b13d3cc6d98cc32ae1280a8762a135", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3109, "upload_time": "2011-12-18T19:47:24", "url": "https://files.pythonhosted.org/packages/ea/38/40d314288ef67ad2de6e047680343c58c2309291f99fb5c68530d1e0ad29/django-user-extension-1.0.0.tar.gz" } ] }