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.

27 lines
823 B

# Generated by Django 4.1.1 on 2022-09-23 22:51
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('article', '0005_rename_tag_article_tags'),
]
operations = [
migrations.CreateModel(
name='Avatar',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('content', models.ImageField(upload_to='avatar/%Y%m%d')),
],
),
migrations.AddField(
model_name='article',
name='avatar',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='articles', to='article.avatar'),
),
]