0006_news.py 1.0 KB

1234567891011121314151617181920212223242526
  1. # -*- coding: utf-8 -*-
  2. from __future__ import unicode_literals
  3. from django.db import models, migrations
  4. class Migration(migrations.Migration):
  5. dependencies = [
  6. ('content_manage', '0005_banner'),
  7. ]
  8. operations = [
  9. migrations.CreateModel(
  10. name='News',
  11. fields=[
  12. ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
  13. ('title', models.CharField(help_text='\u4e0d\u8d85\u8fc764\u4e2a\u5b57', max_length=128, verbose_name='\u6587\u7ae0\u6807\u9898')),
  14. ('img_url', models.URLField(default=b'', null=True, verbose_name='\u56fe\u7247url')),
  15. ('author', models.CharField(default=b'', max_length=32, null=True, verbose_name='\u6587\u7ae0\u4f5c\u8005', blank=True)),
  16. ('content', models.TextField(default=b'', null=True, verbose_name='\u6587\u7ae0\u5185\u5bb9', blank=True)),
  17. ('create_time', models.DateField(auto_now_add=True)),
  18. ],
  19. ),
  20. ]