Solution
def validate_form(self, form) -> bool:
"""Validate form."""
if not super().validate_form(form):
return False
if form.scheduled_from.data >= form.scheduled_to.data:
message = (
"'Scheduled From' cannot be greater than or equal to 'Scheduled To'"
)
flash(message, "error")
return False
# HERE I NEED THE OBJECT THAT IS BEING EDITED
print(form._obj)