Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

36 linhas
1.2 KiB

  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. ]