Няма описание

0004_post_status.py 457B

12345678910111213141516171819
  1. # Generated by Django 3.2.5 on 2021-08-01 06:48
  2. from django.db import migrations, models
  3. class Migration(migrations.Migration):
  4. dependencies = [
  5. ('cms', '0003_alter_post_body'),
  6. ]
  7. operations = [
  8. migrations.AddField(
  9. model_name='post',
  10. name='status',
  11. field=models.CharField(choices=[('draft', 'Draft'), ('publish', 'Publish')], default='draft', max_length=30, null=True),
  12. ),
  13. ]