--

Hey, thanks for reading! It’s been some time since I’ve used Django, so I’m not sure — but since CloudinaryField is based on models.Field it inherits props and methods. Therefore it should have default property — I would try to set default value as img ref which you upload manually to Cloudinary storage.

Other solution (which I used) is to solve this on frontend. So if user has no avatar ->frontend on null/undefined uses default image.

--

--

Jacek Szczerbiński
Jacek Szczerbiński

Written by Jacek Szczerbiński

Mechanical engineer / manager / full stack software developer

No responses yet