Skip to content

Instantly share code, notes, and snippets.

View giacomomarchioro's full-sized avatar

Giacomo Marchioro giacomomarchioro

View GitHub Profile
@giacomomarchioro
giacomomarchioro / app.py
Last active November 13, 2022 21:10 — forked from rmed/app.py
Dynamic Flask-WTF fields more than one dynamic form JQuery function parametrized with arguments (problem for removing items!)
# -*- coding: utf-8 -*-
# app.py
from flask import Flask, render_template
from flask_sqlalchemy import SQLAlchemy
from flask_wtf import FlaskForm
from wtforms import Form, FieldList, FormField, IntegerField, SelectField, \
StringField, TextAreaField, SubmitField
from wtforms import validators