1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Generated by Django 3.1.3 on 2020-11-30 22:45
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('contenttypes', '0002_remove_content_type_name'),
]
operations = [
migrations.CreateModel(
name='RelatedPost',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('entry_id', models.IntegerField()),
('title', models.CharField(max_length=200)),
('slug', models.CharField(max_length=50)),
('pub_date', models.DateTimeField(verbose_name='Date published')),
('model_name', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='contenttypes.contenttype')),
],
options={
'ordering': ('-model_name', '-pub_date'),
'get_latest_by': 'pub_date',
},
),
]
|