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.
25 lines
718 B
25 lines
718 B
2 years ago
|
# Generated by Django 3.1 on 2020-08-30 09:36
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
dependencies = [
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='tb_news',
|
||
|
fields=[
|
||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('news_title', models.CharField(max_length=300)),
|
||
|
('news_detail', models.TextField()),
|
||
|
('news_photo', models.ImageField(default='', upload_to='photo')),
|
||
|
('news_date', models.DateTimeField(auto_now=True)),
|
||
|
],
|
||
|
),
|
||
|
]
|