Metadata-Version: 1.1
Name: django-adminextraviews
Version: 1.0.0
Summary: Mixin for adding class-based views to ModelAdmin
Home-page: https://github.com/fusionbox/django-adminextraviews
Author: Fusionbox, Inc.
Author-email: programmers@fusionbox.com
License: Apache 2.0
Description: django-adminextraviews
        ======================
        
        .. image:: https://travis-ci.org/fusionbox/django-adminextraviews?branch=master
            :target: https://travis-ci.org/fusionbox/django-adminextraviews
        
        Mixin for adding class-based views to ModelAdmin.
        
        
        Why
        ---
        
        Class-based views are really useful, but it's difficult to add them to the
        admin center. This makes it easy to add class-based views to the Django admin.
        
        
        Installation
        ------------
        
        Install django-adminextraviews::
        
            pip install django-adminextraviews
        
        
        Usage
        -----
        
        Add the ``ExtraViewsMixin`` to your ``ModelAdmin`` and define the
        ``extra_views`` attribute.
        
        .. code:: python
        
            from adminextraviews import ExtraViewsMixin
        
            class MyModelAdmin(ExtraViewsMixin, admin.ModelAdmin):
                extra_views = [
                    ('login_as_user', r'(?P<pk>\d+)/login/', LoginAsUserView),
                ]
        
        Now you can use it like a normal view, you can reverse it.
        
        .. code:: python
        
            >>> urlresolvers.reverse('admin:myapp_mymodel_login_as_user', kwargs={'pk': 12})
            '/admin/myapp/mymodel/12/login/'
        
        If your views have a ``form_class`` field, ``ExtraViewsMixin`` will wrap it
        with the admin widgets. It will also set the model attribute for you.
        
        
        .. :changelog:
        
        Changelog
        =========
        
        1.0.0 (2015-03-19)
        ------------------
        
        * First release on PyPI.
        
Keywords: django-adminextraviews
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
