1
Fork 0
yamdl-playground/yamdl_playground/core/models.py

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()