Skip to content

Commit

Permalink
Squashed migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartmaxwell committed May 1, 2024
1 parent 279acae commit 06401bd
Showing 1 changed file with 52 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Generated by Django 5.0.4 on 2024-05-01 10:58

import django.db.models.deletion
import django.utils.timezone
from django.conf import settings
from django.db import migrations, models


class Migration(migrations.Migration):

replaces = [('djpress', '0001_initial'), ('djpress', '0002_alter_content_date'), ('djpress', '0003_alter_content_date_alter_content_modified_date'), ('djpress', '0004_alter_content_date'), ('djpress', '0005_alter_content_slug'), ('djpress', '0006_alter_category_slug'), ('djpress', '0007_alter_content_managers'), ('djpress', '0008_rename_content_post_alter_category_options_and_more')]

initial = True

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]

operations = [
migrations.CreateModel(
name='Category',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=100)),
('slug', models.SlugField(blank=True, unique=True)),
('description', models.TextField(blank=True)),
],
options={
'verbose_name': 'category',
'verbose_name_plural': 'catregories',
},
),
migrations.CreateModel(
name='Post',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=200)),
('slug', models.SlugField(blank=True, unique=True)),
('content', models.TextField()),
('date', models.DateTimeField(default=django.utils.timezone.now)),
('modified_date', models.DateTimeField(auto_now=True)),
('status', models.CharField(choices=[('draft', 'Draft'), ('published', 'Published')], default='draft', max_length=10)),
('content_type', models.CharField(choices=[('post', 'Post'), ('page', 'Page')], default='post', max_length=10)),
('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
('categories', models.ManyToManyField(blank=True, to='djpress.category')),
],
options={
'verbose_name': 'content',
'verbose_name_plural': 'contents',
},
),
]

0 comments on commit 06401bd

Please sign in to comment.