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.
 
 
 
 
 
 

52 lines
1.6 KiB

  1. # -*- coding: utf-8 -*-
  2. from __future__ import unicode_literals
  3. from django.db import models, migrations
  4. import taggit.managers
  5. class Migration(migrations.Migration):
  6. dependencies = [
  7. ('taggit', '0002_auto_20150616_2121'),
  8. ('users', '__first__'),
  9. ('django_images', '__first__'),
  10. ]
  11. operations = [
  12. migrations.CreateModel(
  13. name='Pin',
  14. fields=[
  15. ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
  16. ('url', models.URLField(null=True)),
  17. ('origin', models.URLField(null=True)),
  18. ('description', models.TextField(null=True, blank=True)),
  19. ('published', models.DateTimeField(auto_now_add=True)),
  20. ],
  21. ),
  22. migrations.CreateModel(
  23. name='Image',
  24. fields=[
  25. ],
  26. options={
  27. 'proxy': True,
  28. },
  29. bases=('django_images.image',),
  30. ),
  31. migrations.AddField(
  32. model_name='pin',
  33. name='image',
  34. field=models.ForeignKey(related_name='pin', to='core.Image', on_delete=models.CASCADE),
  35. ),
  36. migrations.AddField(
  37. model_name='pin',
  38. name='submitter',
  39. field=models.ForeignKey(to='users.User', on_delete=models.CASCADE),
  40. ),
  41. migrations.AddField(
  42. model_name='pin',
  43. name='tags',
  44. field=taggit.managers.TaggableManager(to='taggit.Tag', through='taggit.TaggedItem', help_text='A comma-separated list of tags.', verbose_name='Tags'),
  45. ),
  46. ]