def get_form(klass): form = Entity.get_form(override=klass) form.aliases = StringListField("Aliases") return form
def get_form(klass): form = model_form(klass, exclude=klass.exclude_fields) form.filenames = StringListField("Filenames") return form