Notice: This application is still under development and everything is subject to change.
Add
'admin_import'
toINSTALLED_APPS
in your settings file.Add an import to your admin like so:
try: from admin_import.options import add_import except ImportError: pass else: add_import(InviteeAdmin)
Add a button in your admin by overriding the
change_list.html
template for your specific model or useadd_import(InviteeAdmin, add_button=True)
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.
- add a method to specify a custom form to use during the import
- cleaned up some code
- replace print with logging