0002_second.py 573 B

123456789101112131415161718192021222324
  1. # -*- coding: utf-8 -*-
  2. from __future__ import unicode_literals
  3. from django.db import migrations, models
  4. class Migration(migrations.Migration):
  5. initial = True
  6. dependencies = [
  7. ("migrations", "0001_initial"),
  8. ]
  9. operations = [
  10. migrations.AddField("Author", "rating", models.IntegerField(default=0)),
  11. migrations.CreateModel(
  12. "Book",
  13. [
  14. ("id", models.AutoField(primary_key=True)),
  15. ("author", models.ForeignKey("migrations.Author", null=True)),
  16. ],
  17. ),
  18. ]