You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.4 KiB
Python
43 lines
1.4 KiB
Python
# Generated by Django 4.1.4 on 2023-01-06 22:32
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('mensaviewer', '0017_remove_menu_days_remove_menu_locations_location_city_and_more'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.RenameField(
|
|
model_name='comment',
|
|
old_name='username',
|
|
new_name='author',
|
|
),
|
|
migrations.RenameField(
|
|
model_name='comment',
|
|
old_name='related_menu',
|
|
new_name='menu',
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='comment',
|
|
name='comment',
|
|
),
|
|
migrations.AddField(
|
|
model_name='comment',
|
|
name='text',
|
|
field=models.CharField(blank=True, max_length=512, null=True),
|
|
),
|
|
migrations.CreateModel(
|
|
name='NewsArticle',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('author', models.CharField(default='anon', max_length=144)),
|
|
('text', models.CharField(blank=True, max_length=8192, null=True)),
|
|
('location', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='mensaviewer.location')),
|
|
],
|
|
),
|
|
]
|