mirror of
https://github.com/aljazceru/CTFd.git
synced 2026-02-13 18:24:21 +01:00
Remove comments from Fields model
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user