This PR resolves a small bug found in a template tag. A parameter called 'messages' is set in the tag error_for_field, but if messages is a NoneType (ie there are no messages to pass in, then we can't perform the later len(messages) operation.
This sets messages equal to an empty list (if it is equal to None) so that the len(messages) operation can be performed
This PR resolves a small bug found in a template tag. A parameter called 'messages' is set in the tag error_for_field, but if messages is a NoneType (ie there are no messages to pass in, then we can't perform the later len(messages) operation.
This sets messages equal to an empty list (if it is equal to None) so that the len(messages) operation can be performed