dango admin save_model executing twice

48 views
Skip to first unread message

Navneet Pandey

unread,
Oct 4, 2020, 10:59:00 AM10/4/20
to Django users
Hi,

I have a huge model on which i am performing some business logic in admin section.

the problem is when i save the data as per my business logic, in few cases my save_model method is executing twice, causing the success message to appear twice also. not able to understand why this is getting executed twice only in few cases.

here is a demonstration example: 

admin has editable field in list_editable, in which few are columns to select specific action 
whenever any action from action column is selected and saved the code runs twice however for the normal fields which are only text entry it is working fine.

can anyone help on this?

Dvs Khamele

unread,
Oct 11, 2020, 1:11:59 PM10/11/20
to django...@googlegroups.com
Hi do you hire contract based python/django freelancer?
 We can help you in this and related tasks at fair prices. Reply or send email to div...@pythonmate.com
Best Regards, 
Divyesh Khamele,
Pythonmate

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/32e475bd-249d-4b42-a8fd-05aac1987eaan%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages