| 3 | |
| 4 | |
| 5 | class NoteForm(forms.ModelForm): |
| 6 | class Meta: |
| 7 | model = Note |
| 8 | fields = ["title", "body"] |
| 9 | widgets = { |
| 10 | "title": forms.TextInput(attrs={ |
| 11 | "placeholder": "Note title", |
| 12 | "autofocus": True, |
| 13 | }), |
| 14 | "body": forms.Textarea(attrs={ |
| 15 | "placeholder": "Write your note here...", |
| 16 | "rows": 8, |
| 17 | }), |
| 18 | } |
no outgoing calls
no test coverage detected