1
Fork 0
yamdl-playground/yamdl_playground/core/models.py
2023-12-12 18:14:34 +00:00

9 lines
229 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)
content = models.TextField()