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

Model getting saved directly. No confirmation action visible #33

Closed saranmaikalluri closed 1 year ago

saranmaikalluri commented 2 years ago

I have done the below steps:

-Added AdminConfirmMixin: class ApplicationAdmin(AdminConfirmMixin,admin.ModelAdmin): confirm_add = True confirmation_fields = ['country']

When I add data to the model in admin site--its saving directly; not asking for any confirmation.

TrangPham commented 2 years ago

Which version of Django are you using?

As set currently, it would only confirm if you changed the country value to something that isn’t the default value. Is that what you’re trying?

On Tue, Apr 5, 2022 at 23:37 saranmaikalluri @.***> wrote:

I have done the below steps:

  • pip install django-admin-confirm
  • Added admin-confirm before django.contrib.admin and after app:
  • INSTALLED_APPS =[ 'core', ............., ............, 'admin_confirm', 'django.contrib.admin', ........... ]

-Added AdminConfirmMixin: class ApplicationAdmin(AdminConfirmMixin,admin.ModelAdmin): confirm_add = True confirmation_fields = ['country']

When I add data to the model in admin site--its saving directly; not asking for any confirmation.

— Reply to this email directly, view it on GitHub https://github.com/TrangPham/django-admin-confirm/issues/33, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQE5QNWP7MT44H2ODDV2A3VDUWKLANCNFSM5SU64NEQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

TrangPham commented 1 year ago

Closing this issue due to inactivity. Please feel free to comment if the issue is still happening and I can re-open it.