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.

0003_auto_20190222_1016.py 1.8 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # -*- coding: utf-8 -*-
  2. # Generated by Django 1.11.20 on 2019-02-22 10:16
  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', '0002_pin_referer'),
  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. ],
  19. ),
  20. migrations.AlterField(
  21. model_name='pin',
  22. name='origin',
  23. field=models.URLField(blank=True, null=True),
  24. ),
  25. migrations.AlterField(
  26. model_name='pin',
  27. name='referer',
  28. field=models.URLField(blank=True, null=True),
  29. ),
  30. migrations.AlterField(
  31. model_name='pin',
  32. name='url',
  33. field=models.URLField(blank=True, null=True),
  34. ),
  35. migrations.AddField(
  36. model_name='board',
  37. name='pins',
  38. field=models.ManyToManyField(blank=True, related_name='pins', to='core.Pin'),
  39. ),
  40. migrations.AddField(
  41. model_name='board',
  42. name='submitter',
  43. field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='users.User'),
  44. ),
  45. migrations.AlterUniqueTogether(
  46. name='board',
  47. unique_together=set([('submitter', 'name')]),
  48. ),
  49. migrations.AlterIndexTogether(
  50. name='board',
  51. index_together=set([('submitter', 'name')]),
  52. ),
  53. ]