This commit is contained in:
caoqianming 2020-06-12 18:13:59 +08:00
parent ec9fcba978
commit 50922a541e
2 changed files with 10 additions and 2 deletions

View File

@ -21,7 +21,7 @@
"disablePlugins": [],
"outputPath": ""
},
"useCompilerModule": true,
"useCompilerModule": false,
"userConfirmedUseCompilerModuleSwitch": false
},
"compileType": "miniprogram",

View File

@ -18,4 +18,12 @@ class Article(CommonModel):
verbose_name_plural = verbose_name
def __str__(self):
return self.title
return self.title
class Material(CommonModel):
"""
学习资料
"""
name = models.CharField(max_length=200, verbose_name='标题')
description = models.TextField('描述')