I have a popup that redirects to an admin page where a user can edit some contact details. I want the popup to close when the save button is pressed
class ContactInline(admin.TabularInline):
def Edit(self,emp):
w=emp.personnel_id
url='/admin/KUDZU/logmcontactinfodetails/'+str(w)
z= format_html(u'<a href="{}" onclick="return showRelatedObjectLookupPopup(this);">Edit</a>', url)
return (z)
model = LogContactinfo
fields = ('personnel','Edit','Phone','role','contact','note')
I've seen Closing a django admin add related object popup window on save - where exactly do I need to override response_change?