forked from ITStudio_OUC/ProgrammeHomework
添加 project-a/articleapp/models.py
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
from django.db import models
|
||||
|
||||
class Article(models.Model):
|
||||
title = models.CharField(max_length=100)
|
||||
content = models.TextField()
|
||||
create_time = models.DateTimeField(auto_now_add=True)
|
||||
|
||||
def __str__(self):
|
||||
return self.title
|
||||
Reference in New Issue
Block a user