You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
820 B
29 lines
820 B
2 years ago
|
# Generated by Django 4.1.1 on 2022-09-23 18:05
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
dependencies = [
|
||
|
('article', '0003_category_alter_article_options_alter_article_id_and_more'),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='Tag',
|
||
|
fields=[
|
||
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('text', models.CharField(max_length=30)),
|
||
|
],
|
||
|
options={
|
||
|
'ordering': ['-id'],
|
||
|
},
|
||
|
),
|
||
|
migrations.AddField(
|
||
|
model_name='article',
|
||
|
name='tag',
|
||
|
field=models.ManyToManyField(blank=True, related_name='articles', to='article.tag'),
|
||
|
),
|
||
|
]
|