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

10 lines
254 B
Python
Raw Normal View History

2023-12-06 23:30:01 +00:00
from django.db import models
class Page(models.Model):
__yamdl__ = True
title = models.CharField(max_length=255)
2023-12-12 18:22:37 +00:00
slug = models.CharField(max_length=128, unique=True, db_index=True, default=None, null=True)
2023-12-06 23:30:01 +00:00
content = models.TextField()