Skip to content

Commit 40c4cc4

Browse files
authored
feature-8785:Implement dropdown with a number in custom forms (#8900)
1 parent e7e537c commit 40c4cc4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

app/api/schema/custom_forms.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,5 @@ class Meta:
6262
schema='EventSchemaPublic',
6363
type_='event',
6464
)
65+
min = fields.Integer(allow_none=True, default=0)
66+
max = fields.Integer(allow_none=True, default=10)

app/models/custom_form.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ class TYPE:
178178
is_complex = db.Column(db.Boolean, nullable=False, default=False)
179179
event_id = db.Column(db.Integer, db.ForeignKey('events.id', ondelete='CASCADE'))
180180
custom_form_options = db.relationship('CustomFormOptions', backref="custom_form")
181+
min = db.Column(db.Integer, default=0, nullable=True)
182+
max = db.Column(db.Integer, default=10, nullable=True)
181183

182184
@property
183185
def identifier(self):

0 commit comments

Comments
 (0)