Debian Codegraph @

django/contrib/contenttypes/migrations/0001_initial.py

raw
1 import django.contrib.contenttypes.models
2 from django.db import migrations, models
3
4
5 class Migration(migrations.Migration):
6 dependencies = []
7
8 operations = [
9 migrations.CreateModel(
10 name="ContentType",
11 fields=[
12 (
13 "id",
14 models.AutoField(
15 verbose_name="ID",
16 serialize=False,
17 auto_created=True,
18 primary_key=True,
19 ),
20 ),
21 ("name", models.CharField(max_length=100)),
22 ("app_label", models.CharField(max_length=100)),
23 (
24 "model",
25 models.CharField(
26 max_length=100, verbose_name="python model class name"
27 ),
28 ),
29 ],
30 options={
31 "ordering": ("name",),
32 "db_table": "django_content_type",
33 "verbose_name": "content type",
34 "verbose_name_plural": "content types",
35 },
36 bases=(models.Model,),
37 managers=[
38 ("objects", django.contrib.contenttypes.models.ContentTypeManager()),
39 ],
40 ),
41 migrations.AlterUniqueTogether(
42 name="contenttype",
43 unique_together={("app_label", "model")},
44 ),
45 ]