You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
560 B
18 lines
560 B
from django.db import models
|
|
|
|
|
|
# Create your models here.
|
|
class commands(models.Model):
|
|
title = models.CharField('命令标题', max_length=300)
|
|
command = models.CharField('命令', max_length=2000)
|
|
describe = models.CharField('命令描述', max_length=300)
|
|
created_time = models.DateTimeField('创建时间', auto_now_add=True)
|
|
last_mod_time = models.DateTimeField('修改时间', auto_now=True)
|
|
|
|
def __str__(self):
|
|
return self.title
|
|
|
|
class Meta:
|
|
verbose_name = '命令'
|
|
verbose_name_plural = verbose_name
|