first commit
This commit is contained in:
commit
3e4574dcdd
163 files changed
+3559
No files matched your search
@@ -0,0 +1,13 @@
|
||||
from django.db import models
|
||||
from utils.base_model import BaseModel
|
||||
# Create your models here.
|
||||
|
||||
|
||||
class City(BaseModel):
|
||||
name = models.CharField(max_length=30, null=True, blank=True)
|
||||
is_ostan = models.BooleanField(default=False, null=False, blank=False)
|
||||
ostan = models.ForeignKey('self', models.CASCADE, null=True, blank=True)
|
||||
pv_id = models.PositiveSmallIntegerField(null=True, blank=True)
|
||||
|
||||
def __str__(self):
|
||||
return str(self.name)
|
||||
Reference in new issue
Block a user