Added markdown field into blog.Entry
This commit is contained in:
parent
f9524c88e0
commit
84a94fc475
|
@ -0,0 +1,25 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.9.4 on 2016-03-06 08:53
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('blog', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='entry',
|
||||
name='markdown',
|
||||
field=models.TextField(blank=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='entry',
|
||||
name='tags',
|
||||
field=models.ManyToManyField(blank=True, to='blog.Tag'),
|
||||
),
|
||||
]
|
|
@ -12,6 +12,7 @@ class Entry(models.Model):
|
|||
title = models.CharField(max_length=128)
|
||||
date = models.DateTimeField()
|
||||
content = models.TextField()
|
||||
markdown = models.TextField(blank=True)
|
||||
slug = models.SlugField(max_length=128)
|
||||
draft = models.BooleanField(default=True)
|
||||
author = models.ForeignKey(
|
||||
|
|
Loading…
Reference in New Issue