diff --git a/CTFd/models/__init__.py b/CTFd/models/__init__.py index 5a10f9a8..797711b7 100644 --- a/CTFd/models/__init__.py +++ b/CTFd/models/__init__.py @@ -800,26 +800,12 @@ class PageComments(Comments): class Fields(db.Model): __tablename__ = "fields" id = db.Column(db.Integer, primary_key=True) - - # Name of the field. Used as label. name = db.Column(db.Text) - - # What type of field it is (user or team) type = db.Column(db.String(80), default="standard") - - # The actual type of field (text, boolean) field_type = db.Column(db.String(80)) - - # Help text used for the input description = db.Column(db.Text) - - # Required on form submission required = db.Column(db.Boolean, default=False) - - # show_on_profile public = db.Column(db.Boolean, default=False) - - # User can edit this field in settings. All fields should be edittable by an admin editable = db.Column(db.Boolean, default=False) __mapper_args__ = {"polymorphic_identity": "standard", "polymorphic_on": type}