Coverage for reader\models.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.4.4, created at 2024-06-29 10:02 +0100

1from cloudinary.models import CloudinaryField 

2from django.contrib.auth.models import User 

3from django.db import models 

4 

5 

6class ProfileImage(models.Model): 

7 """ 

8 Represents a user's profile image. 

9 

10 Attributes: 

11 user (User): The user associated with the profile image. 

12 image (CloudinaryField): The image field for storing the profile image. 

13 """ 

14 user = models.OneToOneField(User, on_delete=models.CASCADE) 

15 image = CloudinaryField('image', default='placeholder')