Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

add import capabillities to every django modeladmin

branch: master
Octocat-spinner-32 admin_import release 0.3.0 February 13, 2013
Octocat-spinner-32 .gitignore build a package August 15, 2011
Octocat-spinner-32 AUTHORS update authors file September 07, 2011
Octocat-spinner-32 LICENSE build a package August 15, 2011
Octocat-spinner-32 MANIFEST.in build a package August 15, 2011
Octocat-spinner-32 README.rst release 0.3.0 February 13, 2013
Octocat-spinner-32 setup.py Fix typos in setup.py and in the README September 01, 2011
README.rst

Admin Import

Installation

Notice: This application is still under development and everything is subject to change.

  1. Add 'admin_import' to INSTALLED_APPS in your settings file.

  2. Add an import to your admin like so:

    try:
        from admin_import.options import add_import
    except ImportError:
        pass
    else:
        add_import(InviteeAdmin)
    
  3. Add a button in your admin by overriding the change_list.html template for your specific model or use add_import(InviteeAdmin, add_button=True)

  4. If you need an other modelform than used in the admin you can override the ``get_admin_import_model_form` function. But it should be capable of excluding some files.

Change Notes

0.3.0

  • add a method to specify a custom form to use during the import
  • cleaned up some code
  • replace print with logging
Something went wrong with that request. Please try again.