9 lines
254 B
Python
9 lines
254 B
Python
from django.db import models
|
|
|
|
class Page(models.Model):
|
|
__yamdl__ = True
|
|
|
|
title = models.CharField(max_length=255)
|
|
slug = models.CharField(max_length=128, unique=True, db_index=True, default=None, null=True)
|
|
|
|
content = models.TextField()
|