Very, very rudimentary support for making h-entries: they don't look so good and don't appear on the homepage yet but it's a good start

This commit is contained in:
Danielle McLean 2017-10-25 12:01:52 +11:00
parent 430f8d9a1d
commit 950459cd5f
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
14 changed files with 161 additions and 2 deletions

View file

@ -0,0 +1,36 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-25 00:50
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Entry',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('kind', models.CharField(choices=[('note', 'Note'), ('article', 'Article')], default='note', max_length=30)),
('name', models.CharField(blank=True, max_length=100)),
('summary', models.TextField(blank=True)),
('content', models.TextField()),
('published', models.DateTimeField()),
('updated', models.DateTimeField()),
('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
options={
'verbose_name_plural': 'entries',
'ordering': ['-published'],
},
),
]

View file