You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

0001_initial.py 1.1KB

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