You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am storing a profile picture for each user in our database.
class User(AbstractBaseUser, PermissionsMixin):
profile_picture = models.ImageField(
upload_to="profile_picture/",
blank=True,
null=True,
)
Now, I would like to return a cropped or otherwise transformed version of the profile_picture to a client requesting it via a REST API. What method can I use to get a CloudinaryImage instance of the image?
The text was updated successfully, but these errors were encountered:
I am storing a profile picture for each user in our database.
Now, I would like to return a cropped or otherwise transformed version of the profile_picture to a client requesting it via a REST API. What method can I use to get a CloudinaryImage instance of the image?
The text was updated successfully, but these errors were encountered: