23 lines
759 B
Python
23 lines
759 B
Python
from django.db import models
|
|
from django.db.models.base import Model
|
|
import django.utils.timezone as timezone
|
|
from django.db.models.query import QuerySet
|
|
from apps.system.models import CommonAModel, CommonBModel, Organization, User, Dict, File
|
|
from utils.model import SoftModel, BaseModel
|
|
from simple_history.models import HistoricalRecords
|
|
|
|
|
|
|
|
class WareHouse(CommonAModel):
|
|
"""
|
|
仓库信息
|
|
"""
|
|
number = models.CharField('仓库编号', max_length=20, unique=True)
|
|
name = models.CharField('仓库名称', max_length=20, unique=True)
|
|
place = models.CharField('具体地点', max_length=50)
|
|
class Meta:
|
|
verbose_name = '仓库信息'
|
|
verbose_name_plural = verbose_name
|
|
|
|
def __str__(self):
|
|
return self.name |