Overridden the prepare_query_value method in SequenceField inorder to return the value as the required type.