from django.db import models


class Block(models.Model):
    name   = models.CharField("版块名称",max_length=100)
    desc   = models.CharField("版块描述",max_length=100)
    manager= models.CharField("版块管理员",max_length=100)
    status = models.IntegerField("版块状态", choices=((0, "正常"), (-1, "删除")),default=0)

    def __str__(self):
        return self.name

    class Meta:
        verbose_name = "版块"
        verbose_name_plural = "版块"

