TrangPham / django-admin-confirm

AdminConfirmMixin is a mixin for ModelAdmin that adds confirmations to changes, additions and actions.
Other
129 stars 16 forks source link

Version 1.0.0 released on PyPI differs from release 1.0.0 on Github #59

Open eirikff opened 3 months ago

eirikff commented 3 months ago

Describe the bug The version I get when I install from PyPI by running pip install django-admin-confirm differs from the release here on Github. The major difference I've notices is that the version on PyPI doesn't have the updated __init__.py, so to import the decorator confirm_action we need to write from admin_confirm.admin import confirm_action instead of from admin_confirm import confirm_action as the example in the readme.

To Reproduce Steps to reproduce the behavior:

  1. Create a fresh virtual environment.
  2. Install django-admin-confirm with pip install django-admin-confirm.
  3. Create a django application with an admin module, and write from admin_confirm import confirm_action at the top.

Expected behavior The confirm_action decorator to be imported without having to specify the extra .admin in the module name.

Versions (please complete the following information):