{ "info": { "author": "Fusionbox, Inc.", "author_email": "programmers@fusionbox.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "description": "django-adminextraviews\n======================\n\n.. image:: https://travis-ci.org/fusionbox/django-adminextraviews.png?branch=master\n :target: https://travis-ci.org/fusionbox/django-adminextraviews\n\nMixin for adding class-based views to ModelAdmin.\n\n\nWhy\n---\n\nClass-based views are really useful, but it's difficult to add them to the\nadmin center. This makes it easy to add class-based views to the Django admin.\n\n\nInstallation\n------------\n\nInstall django-adminextraviews::\n\n pip install django-adminextraviews\n\n\nUsage\n-----\n\nAdd the ``ExtraViewsMixin`` to your ``ModelAdmin`` and define the\n``extra_views`` attribute.\n\n.. code:: python\n\n from adminextraviews import ExtraViewsMixin\n\n class MyModelAdmin(ExtraViewsMixin, admin.ModelAdmin):\n extra_views = [\n ('login_as_user', r'(?P\\d+)/login/', LoginAsUserView),\n ]\n\nNow you can use it like a normal view, you can reverse it.\n\n.. code:: python\n\n >>> urlresolvers.reverse('admin:myapp_mymodel_login_as_user', kwargs={'pk': 12})\n '/admin/myapp/mymodel/12/login/'\n\nIf your view is a subclass of ``ModelFormMixin`` (like ``CreateView``,\n``UpdateView``), ``ExtraViewsMixin`` will wrap the form class with the admin\ncenter widgets. It will also set the ``model`` attribute if it's not set.\n\n\n.. :changelog:\n\nChangelog\n=========\n\n1.1.0 (2015-03-24)\n------------------\n\n- Allow for use of different models [#1].\n\n\n1.0.0 (2015-03-19)\n------------------\n\n- First release on PyPI.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/fusionbox/django-adminextraviews", "keywords": "django-adminextraviews", "license": "Apache 2.0", "maintainer": null, "maintainer_email": null, "name": "django-adminextraviews", "package_url": "https://pypi.org/project/django-adminextraviews/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-adminextraviews/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/fusionbox/django-adminextraviews" }, "release_url": "https://pypi.org/project/django-adminextraviews/1.1.0/", "requires_dist": null, "requires_python": null, "summary": "Mixin for adding class-based views to ModelAdmin", "version": "1.1.0" }, "last_serial": 1475682, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "212dd44e11c71563441a8ef9a6d50f58", "sha256": "b4b4d431c279d6d80151081c6c1d9d8dc9e4ce65a763cb737eab01b969063a66" }, "downloads": -1, "filename": "django-adminextraviews-1.0.0.tar.gz", "has_sig": false, "md5_digest": "212dd44e11c71563441a8ef9a6d50f58", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7142, "upload_time": "2015-03-19T23:35:02", "url": "https://files.pythonhosted.org/packages/2d/b0/27604a311d265629340b7d69a7ad057ea46e077ef4bf39dd3f6ad6fb43c2/django-adminextraviews-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "44f1c4f2e61c0e07dae668f41798c112", "sha256": "da36fdd1e46816454c7f3c09b0713d90c89265eb76e922203c9ed0e24ea526ee" }, "downloads": -1, "filename": "django-adminextraviews-1.1.0.tar.gz", "has_sig": false, "md5_digest": "44f1c4f2e61c0e07dae668f41798c112", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7730, "upload_time": "2015-03-24T17:42:46", "url": "https://files.pythonhosted.org/packages/c5/77/b11dddeb8be487db69f41624144e9fa4e912cec10eeb9dc07336b024ea7a/django-adminextraviews-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "44f1c4f2e61c0e07dae668f41798c112", "sha256": "da36fdd1e46816454c7f3c09b0713d90c89265eb76e922203c9ed0e24ea526ee" }, "downloads": -1, "filename": "django-adminextraviews-1.1.0.tar.gz", "has_sig": false, "md5_digest": "44f1c4f2e61c0e07dae668f41798c112", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7730, "upload_time": "2015-03-24T17:42:46", "url": "https://files.pythonhosted.org/packages/c5/77/b11dddeb8be487db69f41624144e9fa4e912cec10eeb9dc07336b024ea7a/django-adminextraviews-1.1.0.tar.gz" } ] }