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.

0004_auto_20190222_1451.py 1.2 KiB

1234567891011121314151617181920212223242526272829303132333435
  1. # -*- coding: utf-8 -*-
  2. # Generated by Django 1.11.20 on 2019-02-22 14:51
  3. from __future__ import unicode_literals
  4. from django.db import migrations, models
  5. import django.db.models.deletion
  6. class Migration(migrations.Migration):
  7. dependencies = [
  8. ('users', '0001_initial'),
  9. ('core', '0003_auto_20190222_1358'),
  10. ]
  11. operations = [
  12. migrations.CreateModel(
  13. name='Board',
  14. fields=[
  15. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  16. ('name', models.CharField(max_length=128)),
  17. ('published', models.DateTimeField(auto_now_add=True)),
  18. ('pins', models.ManyToManyField(blank=True, related_name='pins', to='core.Pin')),
  19. ('submitter', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='users.User')),
  20. ],
  21. ),
  22. migrations.AlterUniqueTogether(
  23. name='board',
  24. unique_together=set([('submitter', 'name')]),
  25. ),
  26. migrations.AlterIndexTogether(
  27. name='board',
  28. index_together=set([('submitter', 'name')]),
  29. ),
  30. ]