[Flask] Form with no validators failing validation

Andrea D'Amore and.damore at gmail.com
Mon Apr 25 15:52:15 EDT 2016


On 25 April 2016 at 20:48, Alex Hall <ahall at autodist.com> wrote:
>  searchForm = OrderSearchForm()
>  #now that the form is constructed, we can set the label text properties of
> the elements
>  searchForm.orderNumber.label.text = "Order number to search for"
[…]
>  searchForm.hasErrors.label.text = "Only orders with errors"

Out of curiosity, why setting the labels in the view?


-- 
Andrea


More information about the Flask mailing list