From beaea4f1d268e3aca52d9d82847734e16bdc2fba Mon Sep 17 00:00:00 2001 From: Kevin Chung Date: Tue, 18 Aug 2020 14:19:29 -0400 Subject: [PATCH] Remove comments from Fields model --- CTFd/models/__init__.py | 14 -------------- 1 file changed, 14 deletions(-) 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}