corrected container and other errors
This commit is contained in:
@@ -43,4 +43,8 @@ def form_validation_failed(request, form):
|
||||
if request.method == 'POST':
|
||||
for fieldName, errorMessages in form.errors.items():
|
||||
for err in errorMessages:
|
||||
flash(f"Error in {fieldName}: {err}", 'danger')
|
||||
flash(f"Error in {fieldName}: {err}", 'danger')
|
||||
|
||||
|
||||
def form_to_dict(form):
|
||||
return {field.name: field.data for field in form if field.name != 'csrf_token' and hasattr(field, 'data')}
|
||||
Reference in New Issue
Block a user