# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models


#创建表
class Article(models.Model):
#创建表字段
    #标题
    title = models.CharField(max_length=32,default= 'Tetle')
    #内容（允许为空）
    content = models.TextField(null=True)

    #修改后台数据库字段默认显示名称
    def __unicode__(self):
        return self.title



1ea9c6dbec37be195853ae8f941a5be3016b58b2
<mask token>


class Article(models.Model):
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Article(models.Model):
    <mask token>
    <mask token>

    def __unicode__(self):
        return self.title

<mask token>


class Article(models.Model):
    title = models.CharField(max_length=32, default='Tetle')
    content = models.TextField(null=True)

    def __unicode__(self):
        return self.title

from __future__ import unicode_literals
from django.db import models


class Article(models.Model):
    title = models.CharField(max_length=32, default='Tetle')
    content = models.TextField(null=True)

    def __unicode__(self):
        return self.title

# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models


#创建表
class Article(models.Model):
#创建表字段
    #标题
    title = models.CharField(max_length=32,default= 'Tetle')
    #内容（允许为空）
    content = models.TextField(null=True)

    #修改后台数据库字段默认显示名称
    def __unicode__(self):
        return self.title


