tests/migrations/deprecated_field_migrations/0001_initial.py
raw| 1 | from django.db import migrations, models |
| 2 | |
| 3 | |
| 4 | class Migration(migrations.Migration): |
| 5 | dependencies = [] |
| 6 | |
| 7 | operations = [ |
| 8 | migrations.CreateModel( |
| 9 | name="IPAddressField", |
| 10 | fields=[ |
| 11 | ( |
| 12 | "id", |
| 13 | models.AutoField( |
| 14 | verbose_name="ID", |
| 15 | serialize=False, |
| 16 | auto_created=True, |
| 17 | primary_key=True, |
| 18 | ), |
| 19 | ), |
| 20 | ("ip", models.IPAddressField(null=True, blank=True)), |
| 21 | ], |
| 22 | ), |
| 23 | ] |