Use integer instead of string for form max_length

This is a follow-up patch of a comment
in https://review.openstack.org/#/c/119134/

Change-Id: I87f0a5698e5ccde251eb9cd9c1280291f5d746e0
Merge "Use integer instead of string for form max_length"