Skip to content

Commit 01be4ad

Browse files
committed
Model changes for Group.pre_moderated
1 parent 08441ae commit 01be4ad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

h/models/group.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import slugify
77
import sqlalchemy as sa
88
from sqlalchemy.dialects.postgresql import JSONB
9-
from sqlalchemy.orm import relationship
9+
from sqlalchemy.orm import Mapped, mapped_column, relationship
1010

1111
from h import pubid
1212
from h.db import Base, mixins
@@ -157,6 +157,8 @@ class Group(Base, mixins.Timestamps):
157157
sa.Enum(WriteableBy, name="group_writeable_by"), nullable=True
158158
)
159159

160+
pre_moderated: Mapped[bool | None] = mapped_column()
161+
160162
@property
161163
def groupid(self):
162164
if self.authority_provided_id is None:

0 commit comments

Comments
 (0)