MCPcopy Create free account
hub / github.com/vercel/examples / NoteForm

Class NoteForm

python/django-notes/notes/forms.py:5–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3
4
5class 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 }

Callers 2

note_createFunction · 0.85
note_editFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected