mirror of
https://github.com/Fluffy-Bean/Fluffys-website.git
synced 2025-05-17 17:04:56 +00:00
:3
This commit is contained in:
parent
43665fb930
commit
384aa2b152
173 changed files with 10 additions and 30637 deletions
13
articles/models.py
Normal file
13
articles/models.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
from django.db import models
|
||||
|
||||
|
||||
class Article(models.Model):
|
||||
title = models.CharField(max_length=255)
|
||||
slug = models.SlugField()
|
||||
body = models.TextField()
|
||||
date = models.DateTimeField(auto_now_add=True)
|
||||
thumb = models.ImageField(default="default.png", blank=True)
|
||||
published = models.BooleanField(default=False)
|
||||
|
||||
def __str__(self):
|
||||
return self.title
|
Loading…
Add table
Add a link
Reference in a new issue