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.
26 lines
715 B
26 lines
715 B
2 years ago
|
# Generated by Django 3.1.3 on 2022-09-22 10:24
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
import django.utils.timezone
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
dependencies = [
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='Article',
|
||
|
fields=[
|
||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('title', models.CharField(max_length=100)),
|
||
|
('body', models.TextField()),
|
||
|
('created', models.DateTimeField(default=django.utils.timezone.now)),
|
||
|
('updated', models.DateTimeField(auto_now=True)),
|
||
|
],
|
||
|
),
|
||
|
]
|