mirror of
https://github.com/Rushilwiz/tj2023.git
synced 2025-04-10 23:30:17 -04:00
added name for story
This commit is contained in:
parent
e9f296cb51
commit
207460bbf7
|
@ -3,7 +3,10 @@ from django.db import models
|
|||
|
||||
# Create your models here.
|
||||
class Story(models.Model):
|
||||
header = models.CharField(max_length=30)
|
||||
header = models.CharField(max_length=50)
|
||||
img_name = models.CharField(max_length=50, default=None, null=True)
|
||||
body = models.TextField(max_length=200)
|
||||
created = models.DateTimeField(auto_now=True)
|
||||
created = models.DateTimeField(auto_now=True)
|
||||
|
||||
def __str__(self):
|
||||
return self.header
|
Loading…
Reference in New Issue
Block a user