0001_initial.py 946 B

1234567891011121314151617181920212223
  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. ]
  7. operations = [
  8. migrations.CreateModel(
  9. name='Article',
  10. fields=[
  11. ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
  12. ('title', models.CharField(help_text='\u4e0d\u8d85\u8fc764\u4e2a\u5b57', max_length=128, verbose_name='\u6587\u7ae0\u6807\u9898')),
  13. ('img_url', models.URLField(default=b'', verbose_name='\u56fe\u7247url')),
  14. ('content', models.TextField(verbose_name='\u6587\u7ae0\u5185\u5bb9', choices=[(0, '\u7b80\u4ecb'), (1, '\u4e3b\u7f16\u81f4\u8f9e'), (2, '\u7f16\u59d4\u6210\u5458'), (3, '\u6295\u7a3f\u6307\u5357'), (4, '\u9009\u9898\u6307\u5357'), (5, '\u5e74\u5ea6\u6307\u5357')])),
  15. ],
  16. ),
  17. ]