MCPcopy Create free account
hub / github.com/alpha2phi/python-apps / Migration

Class Migration

hackernews/backend-python/links/migrations/0003_vote.py:8–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6
7
8class Migration(migrations.Migration):
9
10 dependencies = [
11 migrations.swappable_dependency(settings.AUTH_USER_MODEL),
12 ('links', '0002_link_posted_by'),
13 ]
14
15 operations = [
16 migrations.CreateModel(
17 name='Vote',
18 fields=[
19 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
20 ('link', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='votes', to='links.link')),
21 ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
22 ],
23 ),
24 ]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected