We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08441ae commit 01be4adCopy full SHA for 01be4ad
h/models/group.py
@@ -6,7 +6,7 @@
6
import slugify
7
import sqlalchemy as sa
8
from sqlalchemy.dialects.postgresql import JSONB
9
-from sqlalchemy.orm import relationship
+from sqlalchemy.orm import Mapped, mapped_column, relationship
10
11
from h import pubid
12
from h.db import Base, mixins
@@ -157,6 +157,8 @@ class Group(Base, mixins.Timestamps):
157
sa.Enum(WriteableBy, name="group_writeable_by"), nullable=True
158
)
159
160
+ pre_moderated: Mapped[bool | None] = mapped_column()
161
+
162
@property
163
def groupid(self):
164
if self.authority_provided_id is None:
0 commit comments