Re: AdminURLFieldWidget question

2017-03-26 Thread Mike Dewhirst
Declaring myAdminURLFieldWidget outside the ModelAdmin class is the answer! On 26/03/2017 6:32 PM, Mike Dewhirst wrote: How can I manipulate the link in an Admin URLField so it uses the normal HTML hyperlink attributes? I have a substance with ingredients in a self m2m relationship and I want

AdminURLFieldWidget question

2017-03-26 Thread Mike Dewhirst
How can I manipulate the link in an Admin URLField so it uses the normal HTML hyperlink attributes? I have a substance with ingredients in a self m2m relationship and I want the ingredients displayed to carry a link to open themself in another substance page. IOW, I want to use the substance