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

Function seed_initial_note

python/django-notes/notes/migrations/0001_initial.py:4–8  ·  view source on GitHub ↗
(apps, schema_editor)

Source from the content-addressed store, hash-verified

2
3
4def seed_initial_note(apps, schema_editor):
5 Note = apps.get_model("notes", "Note")
6 Note.objects.create(title="Hello", body="world!")
7 Note.objects.create(title="Try it yourself", body="This demo is read-only. Deploy your own copy to create, edit, and delete notes.")
8 Note.objects.create(title="Django on Vercel", body="This app runs on Vercel Serverless Functions using the Python runtime.")
9
10
11class Migration(migrations.Migration):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected