Leaklens

django__django-14855

Wrong URL generated by get_admin_url for readonly field in custom Admin Site

Verdict: the fix is stated in the issue (Tier A).

I have been able to correct this specific issue by replacing the above line with: url = reverse( url_name, args=[quote(remote_obj.pk)], current_app=self.model_admin.admin_site.name )

The text states the fix: “I have been able to correct this specific issue by replacing the above line with: url = reverse( url_name, args=[quote(remote_obj.pk)], current_app=self.model_admin.admi…”

All SWE-bench Verified tasks · more django/django tasks · How the check works