Commit 99b7e3f1 authored by Behr, Svenja's avatar Behr, Svenja
Browse files

- Migration-Dateien

parent 7bbe71d1
# Generated by Django 3.0.7 on 2020-06-30 19:58
import blog.models
import ckeditor_uploader.fields
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Blog',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('identifier', models.CharField(default=blog.models.unique_identifier, max_length=500, unique=True)),
('title', models.CharField(default='Titel', max_length=200)),
('description', ckeditor_uploader.fields.RichTextUploadingField(blank=True)),
('image', models.ImageField(blank=True, upload_to='images/')),
('created', models.DateField(auto_now_add=True)),
('edited', models.DateField(auto_now=True)),
('status', models.IntegerField(choices=[(0, 'Sichtbarer Blog'), (1, 'Versteckter Blog (z.B. Impressum)'), (2, 'Sichtbarer Blog mit Kommentaren'), (3, 'Versteckter Blog mit Kommentaren'), (4, 'Blog nur für User'), (6, 'Blog mit Kommentaren nur für User')], default=1)),
('slug', models.SlugField(max_length=300, unique=True)),
],
),
migrations.CreateModel(
name='Comment',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('author', models.TextField(max_length=150)),
('text', models.TextField(max_length=1000)),
('date', models.DateTimeField(default=datetime.datetime.now)),
('related_blog', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='blog.Blog')),
],
),
]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment