Coverage for reader\forms.py: 100%
6 statements
« prev ^ index » next coverage.py v7.4.4, created at 2024-06-29 10:02 +0100
« prev ^ index » next coverage.py v7.4.4, created at 2024-06-29 10:02 +0100
1from django import forms
3from reader.models import ProfileImage
6class ProfileImageForm(forms.ModelForm):
7 """
8 A form for uploading a profile image.
10 This form is used to upload a profile image for a user.
12 Attributes:
13 image (FileField): The field for uploading the image.
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 """
24 model = ProfileImage
25 fields = ('image',)