initial model

This commit is contained in:
2017-12-08 23:53:47 +00:00
parent 647def8d42
commit f8a310fd27
4 changed files with 29 additions and 1 deletions
+2 -1
View File
@@ -1 +1,2 @@
.env
.env
richtext/staticfiles
+23
View File
@@ -0,0 +1,23 @@
# Generated by Django 2.0 on 2017-12-08 23:53
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='RichPost',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('text', models.TextField()),
('views', models.BigIntegerField()),
('published', models.DateTimeField(verbose_name='date published')),
],
),
]
+4
View File
@@ -1,3 +1,7 @@
from django.db import models
# Create your models here.
class RichPost(models.Model):
text = models.TextField()
views = models.BigIntegerField()
published = models.DateTimeField('date published')