wq / django-data-wizard

🧙⚙️ Import structured data (e.g. Excel, CSV, XML, JSON) into one or more Django models via an interactive web-based wizard
https://django-data-wizard.wq.io
MIT License
338 stars 53 forks source link

Added custom Django Admin, Fix issue 17, other elements #21

Closed marianoeramirez closed 5 years ago

marianoeramirez commented 5 years ago

In this pull request, I did some changes to your awesome project.

  1. I added a custom Django Admin model, now the action to import the data it's only visible on the admins that inherit from ImportActionModelAdmin, Probably I have to add this information to the documentation if you agree with this change I will add this to the documentation
  2. I changed some import options to be relatives
  3. Added a check data_wizard/tasks.py to see if the user is not None.
  4. Changed the reverse URL on data_wizard/views.py, to work with Django URLs
  5. Fixed issue #17
sheppard commented 5 years ago

Thanks, this is a useful set of changes. I merged this after making some small adjustments to get it working in a couple of the test environments.

Feel free to submit a separate pull request to update the documentation.