Auto fill csrf_token to avoid csrf validation error on self
submission. csrf_token validation flag differs from Flask-WTF
version 0.13 to 0.14. Moreover, the old flag will be removed on
Flask-WTF 1. (closes #115)
@hachreak autofilling the csrf token was breaking on flask-wtf > 0.14 so I had to add a function to decide which flag needs to be passed in order to skip the csrf validation
Signed-off-by: Diego Rodriguez diego.rodriguez@cern.ch