Coverage for reader\forms.py: 100%

6 statements  

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

1from django import forms 

2 

3from reader.models import ProfileImage 

4 

5 

6class ProfileImageForm(forms.ModelForm): 

7 """ 

8 A form for uploading a profile image. 

9 

10 This form is used to upload a profile image for a user. 

11 

12 Attributes: 

13 image (FileField): The field for uploading the image. 

14 

15 """ 

16 class Meta: 

17 """ 

18 The Meta class provides additional information about the ModelForm 

19 class. 

20 It specifies the model to be used and the fields to be included in the 

21 form. 

22 """ 

23 

24 model = ProfileImage 

25 fields = ('image',)