from django.db import models

# Create your models here.
from utils.models import BaseModel


class Area(models.Model):
    name =models.CharField(max_length=10,verbose_name="名称")
    parent = models.ForeignKey('self',null=True,blank=True,related_name='subs',on_delete=models.SET_NULL)

    class Meta:
        db_table="tb_areas"
        verbose_name= "地区"

    def __str__(self):
        return self.name
3c4beaaf087f2576061b07c8e5e76fbe046c47b9
<mask token>


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


    class Meta:
        db_table = 'tb_areas'
        verbose_name = '地区'
    <mask token>

<mask token>


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


    class Meta:
        db_table = 'tb_areas'
        verbose_name = '地区'

    def __str__(self):
        return self.name

<mask token>


class Area(models.Model):
    name = models.CharField(max_length=10, verbose_name='名称')
    parent = models.ForeignKey('self', null=True, blank=True, related_name=
        'subs', on_delete=models.SET_NULL)


    class Meta:
        db_table = 'tb_areas'
        verbose_name = '地区'

    def __str__(self):
        return self.name

from django.db import models
from utils.models import BaseModel


class Area(models.Model):
    name = models.CharField(max_length=10, verbose_name='名称')
    parent = models.ForeignKey('self', null=True, blank=True, related_name=
        'subs', on_delete=models.SET_NULL)


    class Meta:
        db_table = 'tb_areas'
        verbose_name = '地区'

    def __str__(self):
        return self.name

from django.db import models

# Create your models here.
from utils.models import BaseModel


class Area(models.Model):
    name =models.CharField(max_length=10,verbose_name="名称")
    parent = models.ForeignKey('self',null=True,blank=True,related_name='subs',on_delete=models.SET_NULL)

    class Meta:
        db_table="tb_areas"
        verbose_name= "地区"

    def __str__(self):
        return self.name