Coverage for website/pushnotifications/forms.py: 100.00%

6 statements  

« prev     ^ index     » next       coverage.py v7.6.7, created at 2025-08-14 10:31 +0000

1from django import forms 

2from django.utils.translation import gettext_lazy as _ 

3 

4 

5class EventMessageForm(forms.Form): 

6 """Form that outputs a widget to get info to send a push notification.""" 

7 

8 title = forms.CharField(label=_("title"), max_length=150) 

9 body = forms.CharField(label=_("body"), widget=forms.Textarea) 

10 url = forms.CharField( 

11 max_length=256, 

12 required=False, 

13 help_text=_("The notification opens to the event by default."), 

14 )