Metadata-Version: 1.1
Name: admin-extra-urls
Version: 0.2.1
Summary: Django mixin to easily add urls to any ModelAdmin
Home-page: UNKNOWN
Author: UNKNOWN
Author-email: UNKNOWN
License: UNKNOWN
Description: admin-extra-urls
        ================
        
        this plugable django application that offer one single Mixin ``ExtraUrlMixin``
        to easily add new url (and related buttons on the screen) to any ModelAdmin.
        
        Install::
        
            pip install admin-extra-urls
        
        After installation add it to ``INSTALLED_APPS``::
        
           INSTALLED_APPS = (
               ...
               'admin_extra_urls',
           )
        
        Example::
        
            class MyModelModelAdmin(ExtraUrlMixin, admin.ModelAdmin):
        
                @link() # /admin/myapp/mymodel/update_all/
                def update_all(self, request):
                    ...
                    ...
        
        
                @action() # /admin/myapp/mymodel/update/10/
                def update(self, request, pk):
                    ...
                    ...
        
            You don't need to return a HttpResponse, by default:
        
            - with `@link()` browser will be redirected to `changelist view`
            - with `@action()` browser will be redirected to `change view `
        
        
        *Note*
        
            The package contains a ``UploadMixin`` to manage custom file uploads
            (simply set `upload_handler` to a function.
            This can be checked to see how to create wizard with an intermediate form.
        
Platform: linux
Classifier: Environment :: Web Environment
Classifier: Operating System :: OS Independent
Classifier: Framework :: Django
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Intended Audience :: Developers
