event-timeline/app/page/models.py

14 lines
331 B
Python
Raw Permalink Normal View History

2021-11-12 16:49:35 +00:00
import logging
from django.db import models
class Page(models.Model):
created = models.DateTimeField(auto_now_add=True)
modified = models.DateTimeField(auto_now=True)
slug = models.SlugField(blank=True, unique=True)
body = models.TextField(blank=True, null=True)
def __str__(self):
return self.slug