forked from 42CTF/website
14 lines
336 B
Python
14 lines
336 B
Python
|
from django.db import models
|
||
|
|
||
|
class new(models.Model):
|
||
|
name = models.CharField(max_length=100)
|
||
|
content = models.TextField()
|
||
|
slug = models.SlugField(max_length=55)
|
||
|
pub_date = models.DateTimeField('Date published')
|
||
|
def __str__(self):
|
||
|
return self.name
|
||
|
|
||
|
# Create your models here.
|
||
|
|
||
|
|