|
1
|
from django.db import models |
|
2
|
|
|
3
|
from core.models import ActiveManager, BaseCoreModel |
|
4
|
|
|
5
|
|
|
6
|
class Page(BaseCoreModel): |
|
7
|
content = models.TextField(blank=True, default="") |
|
8
|
is_published = models.BooleanField(default=True) |
|
9
|
organization = models.ForeignKey("organization.Organization", on_delete=models.CASCADE, related_name="pages") |
|
10
|
|
|
11
|
objects = ActiveManager() |
|
12
|
all_objects = models.Manager() |
|
13
|
|
|
14
|
class Meta: |
|
15
|
ordering = ["name"] |
|
16
|
|