Coverage for src / mesh / views / forms / comment_form.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.13.1, created at 2026-08-27 14:14 +0000

1from django import forms 

2 

3 

4class CommentForm(forms.Form): 

5 """ 

6 Form for user comments. The only user input is the content of the comment. 

7 """ 

8 

9 content = forms.CharField( 

10 required=True, 

11 label=False, 

12 widget=forms.Textarea(attrs={"class": "comment-textarea", "rows": "4"}), 

13 ) 

14 pk = forms.IntegerField(required=False, widget=forms.HiddenInput) 

15 parent = forms.IntegerField(required=False, widget=forms.HiddenInput()) 

16 comment_pk = forms.IntegerField(required=False, widget=forms.HiddenInput())