Describe the bug
When using an optional FileField or an ImageField in a crud, on the detail page, if no file/image was uploaded, an empty clickable link is generated returning a 404.
And for the image, an empty image is trying to be rendered:
To Reproduce
- Create a crud with a nullable
FileField or ImageField.
- Save entity without file/image.
- Open the detail page
- You should see a clickable link to 404 error page
Describe the bug
When using an optional
FileFieldor anImageFieldin a crud, on the detail page, if no file/image was uploaded, an empty clickable link is generated returning a 404.And for the image, an empty image is trying to be rendered:
To Reproduce
FileFieldorImageField.