Mercurial > public > sg101
comparison news/migrations/0001_initial.py @ 1206:02181fa5ac9d modernize tip
Update to Django 1.9.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 22 Jan 2025 17:58:16 -0600 |
parents | ec28e9d1e82a |
children |
comparison
equal
deleted
inserted
replaced
1205:510ef3cbf3e6 | 1206:02181fa5ac9d |
---|---|
39 ('tags', tagging.fields.TagField(max_length=255, blank=True)), | 39 ('tags', tagging.fields.TagField(max_length=255, blank=True)), |
40 ('front_page_expiration', models.DateField(null=True, blank=True)), | 40 ('front_page_expiration', models.DateField(null=True, blank=True)), |
41 ('update_date', models.DateTimeField(db_index=True, blank=True)), | 41 ('update_date', models.DateTimeField(db_index=True, blank=True)), |
42 ('priority', models.IntegerField(default=0, db_index=True, blank=True)), | 42 ('priority', models.IntegerField(default=0, db_index=True, blank=True)), |
43 ('meta_description', models.TextField(blank=True)), | 43 ('meta_description', models.TextField(blank=True)), |
44 ('category', models.ForeignKey(to='news.Category')), | 44 ('category', models.ForeignKey(to='news.Category', |
45 ('submitter', models.ForeignKey(to=settings.AUTH_USER_MODEL)), | 45 on_delete=models.CASCADE)), |
46 ('submitter', models.ForeignKey(to=settings.AUTH_USER_MODEL, | |
47 on_delete=models.CASCADE)), | |
46 ], | 48 ], |
47 options={ | 49 options={ |
48 'ordering': ('-date_submitted',), | 50 'ordering': ('-date_submitted',), |
49 'verbose_name_plural': 'Pending Stories', | 51 'verbose_name_plural': 'Pending Stories', |
50 }, | 52 }, |
62 ('tags', tagging.fields.TagField(max_length=255, blank=True)), | 64 ('tags', tagging.fields.TagField(max_length=255, blank=True)), |
63 ('front_page_expiration', models.DateField(null=True, blank=True)), | 65 ('front_page_expiration', models.DateField(null=True, blank=True)), |
64 ('update_date', models.DateTimeField(db_index=True, blank=True)), | 66 ('update_date', models.DateTimeField(db_index=True, blank=True)), |
65 ('priority', models.IntegerField(default=0, db_index=True, blank=True)), | 67 ('priority', models.IntegerField(default=0, db_index=True, blank=True)), |
66 ('meta_description', models.TextField(blank=True)), | 68 ('meta_description', models.TextField(blank=True)), |
67 ('category', models.ForeignKey(to='news.Category')), | 69 ('category', models.ForeignKey(to='news.Category', |
68 ('submitter', models.ForeignKey(to=settings.AUTH_USER_MODEL)), | 70 on_delete=models.CASCADE)), |
71 ('submitter', models.ForeignKey(to=settings.AUTH_USER_MODEL, | |
72 on_delete=models.CASCADE)), | |
69 ], | 73 ], |
70 options={ | 74 options={ |
71 'ordering': ('-date_submitted',), | 75 'ordering': ('-date_submitted',), |
72 'verbose_name': 'news story', | 76 'verbose_name': 'news story', |
73 'verbose_name_plural': 'news stories', | 77 'verbose_name_plural': 'news stories', |