Hello Community,
Goal : adding a parameter to the add_url embedded by the green cross of a foreignkey field in the django-admin details view.
Solution : pass my parameter as a widget attrs through the
formfield_for_dbfield method and override the admin template :
see code paste_bin
Issue :
- Template gets overriden
- I can't access attrs.my_parameter or attr.my_parameter. It remains empty.
Am I doing something wrong? Is it a bug ?
Best,
Louis